fix: 资源路径调整

This commit is contained in:
xuziqiang
2024-06-11 16:13:51 +08:00
parent c4652e2571
commit fbf460a620
16 changed files with 947 additions and 1060 deletions

View File

@@ -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);
}