Commit 4c5b2347 by 展昭

update

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