From da47a3349dcfd87db23ab8e64fbf35fe1aea5685 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 14 十一月 2024 16:52:21 +0800
Subject: [PATCH] 预测项数据

---
 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