diff --git a/src/stores/permisstion.js b/src/stores/permisstion.js index 473b1b8..ac0f064 100644 --- a/src/stores/permisstion.js +++ b/src/stores/permisstion.js @@ -5,7 +5,6 @@ import Layout from '@/layout/index.vue' import ParentView from '@/components/ParentView.vue' import router from "../router"; const VueComUrl = import.meta.glob('../views/**/*.vue') -console.log(VueComUrl, 'VueComUrl'); export const usePermisstionStroe = defineStore('permisstion', () => { const asyncRouters = ref([]) @@ -35,7 +34,6 @@ export const usePermisstionStroe = defineStore('permisstion', () => { const mData = JSON.parse(JSON.stringify(res.data)) console.log(JSON.parse(JSON.stringify(sRouter)), 'sRouter'); const firstFormat = setRouterLevel(JSON.parse(JSON.stringify(sRouter))) - console.log(firstFormat, 'firstFormat'); asyncRouters.value = formatAsyncRouters(JSON.parse(JSON.stringify(firstFormat))) menuList.value = [...menuList.value, ...generateMenu(mData)] addAsyncRouters(asyncRouters.value) @@ -70,7 +68,6 @@ export const usePermisstionStroe = defineStore('permisstion', () => { } else if (route.component === 'ParentView') { route.component = ParentView } else { - console.log(route.component, 'route.component'); route.component = loadView(route.component) } }