stellar-ui-plus 1.22.15 → 1.22.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,6 +79,9 @@ export function download(
79
79
  plus.runtime.restart();
80
80
  },
81
81
  });
82
+ } else {
83
+ // 整包升级
84
+ success && success();
82
85
  }
83
86
  },
84
87
  e => {
@@ -93,11 +96,6 @@ export function download(
93
96
  });
94
97
  }
95
98
  );
96
- // 整包升级
97
- if (package_type == 0) {
98
- // 解决安装app点击取消,更新还在的问题
99
- success && success();
100
- }
101
99
  }
102
100
  },
103
101
  });
@@ -175,7 +175,7 @@ defineExpose({
175
175
  </view>
176
176
 
177
177
  <button class="content-button" style="border: none; color: #fff" plain @click="confirm" v-if="updateBtn">立即升级</button>
178
- <button class="content-button" style="border: none; color: #fff" plain @click="install" v-else-if="tempFilePath">安装</button>
178
+ <button class="content-button" style="border: none; color: #fff" plain @click="install" v-else-if="data.package_type === 0 && tempFilePath">安装</button>
179
179
  </view>
180
180
  </view>
181
181
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stellar-ui-plus",
3
- "version": "1.22.15",
3
+ "version": "1.22.16",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "MIT",