From 18fcb8ad28f583e3e1b99b23e4f7d9e1833dcd83 Mon Sep 17 00:00:00 2001 From: pengwei <2071057782@qq.com> Date: 星期三, 12 三月 2025 14:16:30 +0800 Subject: [PATCH] 最新提交 --- 项目代码/client/src/layout/index.vue | 88 ++++++++++++++++++++++---------------------- 1 files changed, 44 insertions(+), 44 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/layout/index.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/layout/index.vue" index ce51688..af40482 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/layout/index.vue" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/layout/index.vue" @@ -84,7 +84,7 @@ </div> <div style="margin-left: 2rem"> <span style="color: rgb(255, 255, 255); font-size: 0.88rem" - >濮撳悕锛氳秴绾х鐞嗗憳</span + >濮撳悕锛歿{ userName }}</span > </div> <img @@ -179,7 +179,7 @@ @import "./index.less"; </style> <script> -import { getTreeMenu } from "@/api/menu.js"; +// import { getTreeMenu } from "@/api/menu.js"; import { baseUrl } from "../utils"; import loading from "@/components/basic/RouterLoading"; @@ -558,52 +558,52 @@ Object.assign(_config.$tabs, { open: open, close: close }); //鍒濆鍖栬彍鍗� - getTreeMenu().then((res) => { - console.log("meanu", res); - res.push({ id: "1", name: "棣栭〉", url: "/home" }); // 涓轰簡鑾峰彇閫変腑id浣跨敤 - res.forEach((d) => { - d.path = (d.url || "").replace("/Manager", ""); - d.to = (d.url || "").replace("/Manager", ""); - if (!d.icon || d.icon.substring(0, 3) != "el-") { - d.icon = "el-icon-menu"; - } - }); + // getTreeMenu().then((res) => { + // console.log("meanu", res); + // res.push({ id: "1", name: "棣栭〉", url: "/home" }); // 涓轰簡鑾峰彇閫変腑id浣跨敤 + // res.forEach((d) => { + // d.path = (d.url || "").replace("/Manager", ""); + // d.to = (d.url || "").replace("/Manager", ""); + // if (!d.icon || d.icon.substring(0, 3) != "el-") { + // d.icon = "el-icon-menu"; + // } + // }); - store.dispatch("setPermission", res); + // store.dispatch("setPermission", res); - console.log("鏉冮檺", store.state); - menuOptions.value = res; - permissionInited.value = true; + // console.log("鏉冮檺", store.state); + // menuOptions.value = res; + // permissionInited.value = true; - //寮�鍚秷鎭帹閫侊紙main.js涓缃槸鍚﹀紑鍚痵ignalR锛�2022.05.05 - if (_config.$global.signalR) { - MessageConfig(http, (result) => { - messageList.unshift(result); - // console.log(result) - }); - } + // //寮�鍚秷鎭帹閫侊紙main.js涓缃槸鍚﹀紑鍚痵ignalR锛�2022.05.05 + // if (_config.$global.signalR) { + // MessageConfig(http, (result) => { + // messageList.unshift(result); + // // console.log(result) + // }); + // } - //褰撳墠鍒锋柊鏄笉鏄椤� - if (router.currentRoute.value.path != navigation[0].path) { - //鏌ユ壘绯荤粺鑿滃崟 - let item = menuOptions.value.find((x) => { - return x.path == router.currentRoute.value.path; //this.$route.path; - }); - if (item) return onSelect(item.id); - //鏌ユ壘椤堕儴蹇嵎杩炴帴 - item = links.value.find((x) => { - return x.path == router.currentRoute.value.path; //this.$route.path; - }); - //鏌ユ壘鏈�鍚庝竴娆¤烦杞殑椤甸潰 - if (!item) { - item = getItem(); - } - if (item) { - return open(item, false); - } - } - selectId.value = "1"; - }); + // //褰撳墠鍒锋柊鏄笉鏄椤� + // if (router.currentRoute.value.path != navigation[0].path) { + // //鏌ユ壘绯荤粺鑿滃崟 + // let item = menuOptions.value.find((x) => { + // return x.path == router.currentRoute.value.path; //this.$route.path; + // }); + // if (item) return onSelect(item.id); + // //鏌ユ壘椤堕儴蹇嵎杩炴帴 + // item = links.value.find((x) => { + // return x.path == router.currentRoute.value.path; //this.$route.path; + // }); + // //鏌ユ壘鏈�鍚庝竴娆¤烦杞殑椤甸潰 + // if (!item) { + // item = getItem(); + // } + // if (item) { + // return open(item, false); + // } + // } + // selectId.value = "1"; + // }); }; created(); return { -- Gitblit v1.9.3