Browse Source

添加跳转“知识图谱”的userId

yangdr 1 tháng trước cách đây
mục cha
commit
bff55f04fa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/LayoutHeader.vue

+ 1 - 1
src/components/LayoutHeader.vue

@@ -75,7 +75,7 @@ function handleMenuClick(path) {
     // path = 'http://localhost:8081/home.html'
     const newWindow = window.open(path, '_blank');
     timer = setInterval(() => {
-      newWindow?.postMessage({ type: 'login', username: getSessionVar("full_name") }, "*")
+      newWindow?.postMessage({ type: 'login', username: getSessionVar("full_name"), userID: getSessionVar("user_id") }, "*")
     }, 1000)
     menuRef.value.updateActiveIndex(currentPath.value)
   } else {