|
@@ -2,6 +2,7 @@ import { LOGIN_URL } from '@/constants'
|
|
|
import router from '@/router'
|
|
|
import { useAuthStore, useUserStore } from '@/stores'
|
|
|
import type { RouteRecordRaw } from 'vue-router'
|
|
|
+import MenuApi from '@/api/module/system/menu'
|
|
|
|
|
|
// 引入 views 文件夹下所有 vue 文件
|
|
|
const modules = import.meta.glob('@/views/**/*.vue')
|
|
@@ -15,9 +16,7 @@ export const initDynamicRouter = async () => {
|
|
|
// const optionsStore = useOptionsStore()
|
|
|
try {
|
|
|
if (authStore.isLoaded) return
|
|
|
- authStore.setAuthMenuList()
|
|
|
- authStore.setAuthButtonList()
|
|
|
- authStore.setAuthRoleList()
|
|
|
+ authStore.setMenuList()
|
|
|
// optionsStore.setReloadOptions()
|
|
|
// await optionsStore.getAllDictList()
|
|
|
authStore.setLoaded()
|