From 1ec6e15f8a7d351ce8537567cf6e956e99d4167f Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 09 八月 2023 10:16:05 +0800
Subject: [PATCH] 1.编码规格完成90%
---
src/layout/components/Navbar.vue | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index a9f42f4..3bfde97 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -243,7 +243,7 @@
mounted() {
// this.getHubConnectionBuilder()
- this.getButtonData()
+ Vue.prototype.$ButtonData = JSON.parse(sessionStorage.getItem('ButtonData'))
},
computed: {
...mapGetters([
@@ -275,12 +275,6 @@
}
},
methods: {
- // 鑾峰彇鍏ㄥ眬鎸夐挳閿�煎
- async getButtonData() {
- const { data: res } = await ButtonData()
- Vue.prototype.$ButtonData = res // 鐢ㄤ簬鍏ㄥ眬
- },
-
// 寤虹珛hub杩炴帴
async getHubConnectionBuilder() {
const url = 'http://121.196.36.24:8019/chatHub'
--
Gitblit v1.9.3