修改bug
parent
9bc454d59b
commit
41f58fb29c
|
|
@ -2,8 +2,8 @@
|
||||||
"name" : "托管门店助手",
|
"name" : "托管门店助手",
|
||||||
"appid" : "__UNI__ADB6360",
|
"appid" : "__UNI__ADB6360",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.0",
|
"versionName" : "1.0.1",
|
||||||
"versionCode" : "100",
|
"versionCode" : "101",
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ export default function () {
|
||||||
|
|
||||||
const info = resData[systemInfo.platform];
|
const info = resData[systemInfo.platform];
|
||||||
let resInfo = null
|
let resInfo = null
|
||||||
if (info == null) {
|
if (info == null || appVersion >= info?.version) {
|
||||||
resInfo = {
|
resInfo = {
|
||||||
code: 0
|
code: 0
|
||||||
}
|
}
|
||||||
|
|
@ -62,8 +62,6 @@ export default function () {
|
||||||
code: info.update_strategy === 'wgt' ? 101 : 102
|
code: info.update_strategy === 'wgt' ? 101 : 102
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(resInfo);
|
|
||||||
resolve(resInfo);
|
resolve(resInfo);
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
reject(err);
|
reject(err);
|
||||||
|
|
|
||||||
|
|
@ -339,7 +339,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (this.needNotificationProgress) {
|
if (this.needNotificationProgress) {
|
||||||
uni.navigateBack()
|
// uni.navigateBack()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
downLoadComplete() {
|
downLoadComplete() {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import { useGlobSetting } from '@/config';
|
||||||
import { useUserStoreWithOut } from '@/store/modules/user';
|
import { useUserStoreWithOut } from '@/store/modules/user';
|
||||||
const { apiUrl } = useGlobSetting();
|
const { apiUrl } = useGlobSetting();
|
||||||
const systemInfo = uni.getSystemInfoSync();
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
|
|
||||||
const http = new Request();
|
const http = new Request();
|
||||||
http.setConfig((config) => {
|
http.setConfig((config) => {
|
||||||
config.baseURL = apiUrl;
|
config.baseURL = apiUrl;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue