diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 248a7278..6a8fc227 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -157,7 +157,7 @@ export const useUserStore = defineStore('app-user', { id: __menu.id, parentId: __menu.parentId, name: __menu.name, - component: `${__menu.path}.vue`, + component: `${__menu.path}${__menu.path.endsWith('index') ? '' : '/index'}.vue`, componentName, path: __menu.path, icon: __menu.source,