From e1e01358530ea0cae9bd09aab1b6e2c371f2dd1c Mon Sep 17 00:00:00 2001 From: dongyukun <1208714201@qq.com> Date: 星期一, 11 十一月 2024 15:10:13 +0800 Subject: [PATCH] opcua选择是否更新当前值功能 --- src/views/Home/Index.vue | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index ea052b1..aa64a85 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -37,12 +37,7 @@ const getAppMenuList = async (id) => { const data = await AppApi.getAppMenuList(id) - console.log(data) - let userInfo = wsCache.get(CACHE_KEY.USER) - let routers = wsCache.get(CACHE_KEY.ROLE_ROUTERS) - console.log(userInfo) - console.log(routers) userInfo.menus = data wsCache.set(CACHE_KEY.USER, userInfo) wsCache.set(CACHE_KEY.ROLE_ROUTERS, data) @@ -62,12 +57,17 @@ const gotoApp = async (item) => { let id = item.id let type = item.type - console.log(type) if(type === 0) { getAppMenuList(id) } 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) // await OAuth2Login(formData.value) - window.open(item.appDomain + '/login?appid=' + item.id + "&username=" + authUtil.getLoginForm().username, '_blank') + // window.open(item.appDomain + '/login?appid=' + item.id + "&username=" + authUtil.getLoginForm().username, '_blank') + window.open(item.appDomain + '/index', '_blank') } } -- Gitblit v1.9.3