按钮级别的新版本,多级别的组织架构
loulijun2021
2023-08-09 1ec6e15f8a7d351ce8537567cf6e956e99d4167f
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'