cfel-base-components 2.5.11 → 2.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/apiRequest/config.ts
CHANGED
|
@@ -47,7 +47,7 @@ instance.interceptors.response.use(
|
|
|
47
47
|
enum CodeMessage {
|
|
48
48
|
"发出的请求有错误,服务器没有进行新建或修改数据的操作。" = 400,
|
|
49
49
|
"用户未登录。" = 401,
|
|
50
|
-
"
|
|
50
|
+
"用户未得到授权,访问是被禁止的。" = 403,
|
|
51
51
|
"发出的请求针对的是不存在的记录,服务器没有进行操作。" = 404,
|
|
52
52
|
"请求的格式不可得。" = 406,
|
|
53
53
|
"请求的资源被永久删除,且不会再得到的。" = 410,
|
|
@@ -60,7 +60,7 @@ instance.interceptors.response.use(
|
|
|
60
60
|
|
|
61
61
|
notification.error({
|
|
62
62
|
message:
|
|
63
|
-
response?.data?.
|
|
63
|
+
response?.data?.errorMsg ||
|
|
64
64
|
CodeMessage[status] ||
|
|
65
65
|
"服务暂不可用,请检查网络",
|
|
66
66
|
});
|