From 311110d3edef03961cec9a5eabfcb44fb602217b Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Thu, 6 Jul 2023 14:33:52 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=94=AF=E6=8C=81=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E5=8D=A0=E4=BD=8D=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index eb7b16b..5d00912 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -11,7 +11,6 @@ import { createRouter, createWebHashHistory } from 'vue-router'; import { basicRoutes } from './routes'; import { formatUrlParamsMenu } from '/@/router/helper/menuHelper'; import { useUserStore } from '/@/store/modules/user'; -const userStore = useUserStore(); /** 固定路由,设置基础路由不需要被重置掉 */ const WHITE_NAME_LIST: string[] = []; @@ -45,6 +44,7 @@ export function setupRouter(app: App) { /** 解析格式化路由占位符 */ export function formatRouterPlaceholder(path: string) { + const userStore = useUserStore(); return formatUrlParamsMenu(path, { user: userStore.getUserInfo, accessToken: userStore.getAccessToken,