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'