mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
统一处理报错
This commit is contained in:
@@ -492,6 +492,9 @@ export async function request(_url, params) {
|
|||||||
return JSONBigIntStr.parse(res);
|
return JSONBigIntStr.parse(res);
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code === 0 || res.code === 200) {
|
if (res.code === 0 || res.code === 200) {
|
||||||
|
if(res.data.status == 600){
|
||||||
|
message.error(res.data.msg);
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
if (res.code === 1000 || res.code === 1002) {
|
if (res.code === 1000 || res.code === 1002) {
|
||||||
|
|||||||
Reference in New Issue
Block a user