From 0025987fb29f4096407d4adf8d7bcef80c4d918a Mon Sep 17 00:00:00 2001 From: K <1175047471@qq.com> Date: Tue, 9 Apr 2024 14:20:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20route=20component=20path=20=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,