From 3f4d4e3789040e3e8d566c6855b52cd808c2ac1a Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期三, 27 十一月 2024 17:00:13 +0800 Subject: [PATCH] 修改进入脚手架菜单缓存 --- src/views/Home/Index.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index 4c437f4..e9f6870 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -70,11 +70,11 @@ if (type === 0) { await getAppMenuList(id, appCode) } else { - // const data = await AppApi.getAppMenuList(id) - // let userInfo = wsCache.get(CACHE_KEY.USER) - // userInfo.menus = data - // wsCache.set(CACHE_KEY.USER, userInfo) - // wsCache.set(CACHE_KEY.ROLE_ROUTERS, data) + const data = await AppApi.getAppMenuList(id) + let userInfo = wsCache.get(CACHE_KEY.USER) + userInfo.menus = data + wsCache.set(CACHE_KEY.USER, userInfo) + wsCache.set(CACHE_KEY.ROLE_ROUTERS, data) window.open(item.appDomain + '/index', '_blank') // window.open('/plat/shasteel', '_blank') // window.location.href = '/plat/shasteel' -- Gitblit v1.9.3