您的当前位置:首页正文

解决vue antd tab切换多次切换不刷新的问题

2024-11-08 来源:个人技术集锦
 callback(key) {
      this.activeKey = key;
      switch (key) {
        // case '1':
        //   this.$refs.CompanyBaseInfo.init();
        //   this.defaultActiveKey = '1'
        //   break
        // case '2':
        //   this.$refs.CompanyAccountInfo.init();
        //   this.defaultActiveKey = '2'
        //   break
        case "3":
            this.$nextTick(() => {
              this.$refs.detailpicComponent.getdefaultlist();
            });
          break;
        case "4":
          this.$nextTick(() => {
            this.$refs.ImageCollection.defaultfun();
          });
          break;
      }
Top