heyujie
2021-12-22 ecf388a7953a10fe1ae8ee1a332c74ce40d782eb
src/pages/ai/index/detail.vue
@@ -287,8 +287,8 @@
      installedApps: [],
      storeApps: [],
      installFile: {},
      appUpgreading: true,
      sdkUpgreading: true,
      appUpgreading: false,
      sdkUpgreading: false,
      autoRefresh: true,
      productDetailVisible: false,
      isUpgrading: false,
@@ -516,7 +516,6 @@
          );
          if (obj.progressMsg !== "" && obj.progressMsg !== "已安装") {
            obj.upgradeLoading = true;
            this.appUpgreading = true;
          }
@@ -726,7 +725,6 @@
          );
          if (obj.progressMsg !== "" && obj.progressMsg !== "已安装") {
            obj.upgradeLoading = true;
            this.sdkUpgreading = true;
          }
@@ -859,21 +857,20 @@
    inputBlur(item) {
      this.$set(item, "isEdit", false);
    },
    autoRefreshAppAndSdkState() {
      // 关闭后退出
     autoRefreshAppAndSdkState() {
      this.getAllApps();
      this.getAllSdk();
      if (!this.autoRefresh) {
        return;
      }
      if (this.appUpgreading) {
        this.getAllApps();
      }
      if (this.sdkUpgreading) {
        this.getAllSdk();
      }
      let _this = this;
      setTimeout(() => {
        _this.autoRefreshAppAndSdkState();
      }, 500);
        if (this.appUpgreading) {
          this.getAllApps();
        }
        if (this.sdkUpgreading) {
          this.getAllSdk();
        }
      }, 1000);
    },
  },
};