cynthia-qin 1 ماه پیش
والد
کامیت
be91c5a96b
3فایلهای تغییر یافته به همراه13 افزوده شده و 7 حذف شده
  1. 4 4
      package-lock.json
  2. 1 1
      package.json
  3. 8 2
      src/views/Login/Login.vue

+ 4 - 4
package-lock.json

@@ -18,7 +18,7 @@
         "axios": "^1.8.4",
         "crypto-js": "^4.2.0",
         "date-fns": "^4.1.0",
-        "element-plus": "^2.9.6",
+        "element-plus": "^2.9.8",
         "file-saver": "^2.0.5",
         "github-markdown-css": "^5.8.1",
         "highlight.js": "^11.11.1",
@@ -3353,9 +3353,9 @@
       "license": "ISC"
     },
     "node_modules/element-plus": {
-      "version": "2.9.6",
-      "resolved": "https://registry.npmjs.org/element-plus/-/element-plus-2.9.6.tgz",
-      "integrity": "sha512-D9zU28Ce0s/9O/Vp3ewemikxzFVA6gdZyMwmWijHijo+t5/9H3sHRTIm1WlfeNpFW2Yq0y8nHXD0fU5YxU6qlQ==",
+      "version": "2.9.8",
+      "resolved": "https://mirrors.huaweicloud.com/repository/npm/element-plus/-/element-plus-2.9.8.tgz",
+      "integrity": "sha512-srViUaUdfblBKGMeuEPiXxxKlH5aUmKqEwmhb/At9Sj91DbU6od/jYN1955cTnzt3wTSA7GfnZF7UiRX9sdRHg==",
       "license": "MIT",
       "dependencies": {
         "@ctrl/tinycolor": "^3.4.1",

+ 1 - 1
package.json

@@ -22,7 +22,7 @@
     "axios": "^1.8.4",
     "crypto-js": "^4.2.0",
     "date-fns": "^4.1.0",
-    "element-plus": "^2.9.6",
+    "element-plus": "^2.9.8",
     "file-saver": "^2.0.5",
     "github-markdown-css": "^5.8.1",
     "highlight.js": "^11.11.1",

+ 8 - 2
src/views/Login/Login.vue

@@ -60,6 +60,7 @@
 import { onMounted, ref, watch, watchEffect } from "vue";
 import { useRouter, useRoute } from "vue-router";
 import { userLogin, userSignin } from "@/api/AgentApi";
+import { knowledgeGraphAddr } from "@/utils/config"
 import {
   deleteSessionVar,
   getSessionVar,
@@ -220,8 +221,13 @@ const handleLoginSubmit = () => {
     res.records[0].menu_permissions.forEach((item: any) => {
       if (item.menu_name == "知识更新管理") {
         knowledageSystem = 'true';
-      }
-      if (item.menu_route) {
+        routeList.push({
+          path: knowledgeGraphAddr,
+          name: '',
+          title: item.name,
+          children: item.children,
+        });
+      } else if (item.menu_route) {
         routeList.push({
           path: item.menu_route,
           name: item.menu_route.split("/")[2],