bug修复
This commit is contained in:
parent
5cfa7a050b
commit
4cc846aea9
|
|
@ -10,7 +10,7 @@ class HttpConfig {
|
|||
// baseUrl = "http://112.29.103.165:21626"
|
||||
// baseUrl = "http://172.20.10.3:8080"
|
||||
// baseUrl = "http://10.40.92.8:8080"
|
||||
// baseUrl = "http://10.40.92.52:28080"
|
||||
// baseUrl = "http://192.168.0.96:28080"
|
||||
// baseUrl = "http://10.40.92.78:28080"
|
||||
// baseUrl = "http://192.168.2.127:28080"
|
||||
// baseUrl = "https://z.csgmall.com.cn/gl"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ class Http{
|
|||
method:"GET",
|
||||
dataType:'json',
|
||||
header:{
|
||||
'content-type':'application/json',
|
||||
// 'content-type':'application/json',
|
||||
'Authorization': uni.getStorageSync('token'),
|
||||
...header
|
||||
},
|
||||
|
|
|
|||
|
|
@ -352,7 +352,7 @@
|
|||
this.$api.update
|
||||
.fetchAppVer()
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
console.log('🚀 ~ .then ~ res -版本检查:', res)
|
||||
if (res.data.code == 200) {
|
||||
serveVer = res.data.data[0].versionName.replace(
|
||||
/\./g,
|
||||
|
|
@ -361,7 +361,7 @@
|
|||
apkPath = res.data.data[0].apkPath;
|
||||
// 比较版本大小
|
||||
setTimeout(() => {
|
||||
console.log(nowVer, serveVer, apkPath);
|
||||
console.log(nowVer, serveVer, apkPath, '--->>> 版本检查');
|
||||
if (nowVer < serveVer) {
|
||||
uni.showModal({
|
||||
title: "版本升级",
|
||||
|
|
|
|||
Loading…
Reference in New Issue