修改bug

main
ihzero 2024-05-02 13:40:22 +08:00
parent 9bc454d59b
commit 41f58fb29c
4 changed files with 5 additions and 6 deletions

View File

@ -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" : {

View File

@ -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);

View File

@ -339,7 +339,7 @@
} }
}); });
if (this.needNotificationProgress) { if (this.needNotificationProgress) {
uni.navigateBack() // uni.navigateBack()
} }
}, },
downLoadComplete() { downLoadComplete() {

View File

@ -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;