Sfoglia il codice sorgente

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

使用 @uni-helper/uni-env 替代原有的平台判断逻辑,保持环境判断的一致性
feige996 7 mesi fa
parent
commit
674ea563f2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/utils/index.ts

+ 1 - 1
src/utils/index.ts

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