mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-21 00:58:58 +08:00
fix: fix request not displaying interface error messages correctly (#4596)
This commit is contained in:
@@ -91,7 +91,7 @@ export const errorMessageResponseInterceptor = (
|
||||
return Promise.reject(error);
|
||||
}
|
||||
|
||||
let errorMessage = error?.response?.data?.error?.message ?? '';
|
||||
let errorMessage = '';
|
||||
const status = error?.response?.status;
|
||||
|
||||
switch (status) {
|
||||
|
||||
Reference in New Issue
Block a user