Commit 4f6710c8 authored by liujiangnan's avatar liujiangnan

feat: 强制更新才弹窗

parent 648cc357
...@@ -108,10 +108,10 @@ export default class NewClass extends middleLayerBase { ...@@ -108,10 +108,10 @@ export default class NewClass extends middleLayerBase {
type = null; type = null;
engine_uuid = null; engine_uuid = null;
async checkVersion() { async checkVersion() {
const { versionName: onlineVersion, storeList } = await this.getOnlineVersion(); const { versionName: onlineVersion, storeList, forceUpdate } = await this.getOnlineVersion();
const nativeVersion = await this.getNativeVersion(); const nativeVersion = await this.getNativeVersion();
this.version = nativeVersion; this.version = nativeVersion;
if (onlineVersion != '' && onlineVersion != nativeVersion && this.type!='aixuebao') { if (onlineVersion != '' && onlineVersion != nativeVersion && forceUpdate!=0 && this.type!='aixuebao') {
console.log('onlineVersion = ' + onlineVersion); console.log('onlineVersion = ' + onlineVersion);
console.log('nativeVersion = ' + nativeVersion); console.log('nativeVersion = ' + nativeVersion);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment