refactor(utils): 将平台判断逻辑迁移至统一环境库

使用 @uni-helper/uni-env 替代原有的平台判断逻辑,保持环境判断的一致性
This commit is contained in:
feige996
2025-09-22 19:51:19 +08:00
parent b4273c7d95
commit 674ea563f2

View File

@@ -1,5 +1,5 @@
import { isMpWeixin } from '@uni-helper/uni-env'
import { pages, subPackages } from '@/pages.json'
import { isMpWeixin } from './platform'
export function getLastPage() {
// getCurrentPages() 至少有1个元素所以不再额外判断