| | |
| | | installedApps: [],
|
| | | storeApps: [],
|
| | | installFile: {},
|
| | | appUpgreading: true,
|
| | | sdkUpgreading: true,
|
| | | appUpgreading: false,
|
| | | sdkUpgreading: false,
|
| | | autoRefresh: true,
|
| | | productDetailVisible: false,
|
| | | isUpgrading: false,
|
| | |
| | | );
|
| | | if (obj.progressMsg !== "" && obj.progressMsg !== "已安装") {
|
| | | obj.upgradeLoading = true;
|
| | |
|
| | | this.appUpgreading = true;
|
| | | }
|
| | |
|
| | |
| | | );
|
| | | if (obj.progressMsg !== "" && obj.progressMsg !== "已安装") {
|
| | | obj.upgradeLoading = true;
|
| | |
|
| | | this.sdkUpgreading = true;
|
| | | }
|
| | |
|
| | |
| | | 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);
|
| | | },
|
| | | },
|
| | | };
|