From d149f4806af2f91669f27737a179bb15278e01bd Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期三, 06 五月 2026 17:07:23 +0800
Subject: [PATCH] 1.定时任务修改

---
 src/layout/components/Navbar.vue |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 3b02761..139b2aa 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -268,8 +268,7 @@
     // Vue.prototype.$ButtonData = JSON.parse(localStorage.getItem('ButtonData'))
   },
   mounted() {
-    // this.getHubConnectionBuilder()
-
+    this.getHubConnectionBuilder()
   },
   computed: {
     ...mapGetters([
@@ -313,7 +312,7 @@
     // },
     // 寤虹珛hub杩炴帴
     async getHubConnectionBuilder() {
-      const url = 'http://121.196.36.24:8019/chatHub'
+      const url = 'http://121.196.36.24:8048/chatHub'
       this.signalr = new signalR.HubConnectionBuilder().withUrl(url, {
         // skipNegotiation: true,
         // transport: signalR.HttpTransportType.WebSockets
@@ -342,7 +341,7 @@
         this.$notify({ offset: 80, type: 'warning', title: '娑堟伅鎻愰啋', message: res })
         this.$store.state.settings.isDot = true
       })
-      await this.signalr.invoke('AddUser', getCookie('admin'))
+      await this.signalr.invoke('AddUser', localStorage.getItem('account'))
     },
 
     systemSetting() {

--
Gitblit v1.9.3