fix: 资源路径调整
This commit is contained in:
@@ -74,7 +74,7 @@ export class NSAxios {
|
||||
}
|
||||
return config;
|
||||
}, undefined);
|
||||
const errCodeArr = [13, 1, 3005];
|
||||
|
||||
const errCodeMap = new Map([
|
||||
[13, ''],
|
||||
[1, ''],
|
||||
@@ -91,7 +91,7 @@ export class NSAxios {
|
||||
NsMessage.error({
|
||||
content: msg,
|
||||
key: this.errorMsgKey,
|
||||
onClose: JSON.parse(errCodeMap.get(code)!),
|
||||
onClose: errCodeMap.get(code) && JSON.parse(errCodeMap.get(code)!)(),
|
||||
});
|
||||
return Promise.reject(res);
|
||||
}
|
||||
|
Reference in New Issue
Block a user