Commit 4c5b2347 by 展昭

update

parent 911c3e98
Showing with 8 additions and 3 deletions
......@@ -38,7 +38,8 @@
},
"browserslist": [
"> 1%",
"last 2 versions",
"last 6 versions",
"Android >= 3.2",
"not dead"
]
}
......@@ -24,7 +24,10 @@ http.interceptors.response.use(
Toast.clear();
console.log('response=', response);
if (response.error == 400 || response.status == 400) {
Toast.fail('授权失败!');
Toast.fail({
message:'授权失败!',
position:{top:200}
});
}
let { data } = response;
if (!data.errcode) {
......@@ -51,7 +54,8 @@ http.interceptors.response.use(
Toast.fail({
message: '授权失败!',
duration: 0,
overlay: true
overlay: true,
position:{top:200}
})
}
......
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 sign in to comment