Commit 8653614a authored by 李苏's avatar 李苏 💬

ces

parent 1fa576b2
......@@ -68,7 +68,7 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
let data = response.data
const token = uni.getStorageSync(ACCESS_TOKEN)
console.log("------异常响应------",token)
console.log("------异常响应------",data.status)
console.log("------异常响应------",data)
switch (data.status) {
case 403:
tip.error('拒绝访问');
......
......@@ -32,6 +32,20 @@ function versionStringCompare(preVersion, lastVersion) {
return result;
}
export default function appUpdate(loginApp) {
/* 5S请求超时跳转回登录 */
let isTimerOut=true
setTimeout(()=>{
if(isTimerOut){
uni.hideLoading()
if(!hasLogin){
loginApp.$Router.replaceAll({
name: 'login'
})
}
}
},5000)
loginApp.showProcess('正在检测版本更新', 10)
/* 0-安卓 1-ios*/
let appType = null;
......@@ -45,6 +59,8 @@ export default function appUpdate(loginApp) {
apptype: appType,
appid: '__UNI__79C58F0',
}).then((res) => {
/* 请求成功改变标志 */
isTimerOut=false
console.log(res,'res')
if (res) {
plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) {
......
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