li.shaoyi 2 tahun lalu
induk
melakukan
96ff987d3b
2 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 1
      src/business/auth/index.ts
  2. 0 1
      src/packages/mobile/main.ts

+ 1 - 1
src/business/auth/index.ts

@@ -89,7 +89,7 @@ export function useAuth(autoLogin = false) {
             const { LoginID, LoginPWD } = user.value
             if (LoginID && LoginPWD) {
                 await loginStore.userLogin(user.value)
-                await Promise.all([userStore.getUserData(), menuStore.getUserMenuList()])
+                await userStore.getUserData()
 
                 futuresStore.getGoodsList()
                 accountStore.getAccountList()

+ 0 - 1
src/packages/mobile/main.ts

@@ -6,7 +6,6 @@ import router from './router'
 import directives from '@/directives' // 自定义指令集
 //import 'default-passive-events'
 import '@/services/subscribe' // 全局订阅通知
-import '@/mock' // 模拟数据
 import '@/utils/h5plus' // 加载html5+
 import client from '@/utils/client' // 适配客户端
 import layouts from './components/layouts' // 全局布局组件