小小儁爺
2026-05-06 d149f4806af2f91669f27737a179bb15278e01bd
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() {