|
@@ -23,6 +23,7 @@ axios.interceptors.request.use((config) => {
|
|
|
|
|
|
axios.interceptors.response.use(
|
|
|
(res) => {
|
|
|
+
|
|
|
if (res.status >= 200 && res.status < 300) {
|
|
|
if (res.data?.code === 200) {
|
|
|
return res.data;
|
|
@@ -52,6 +53,7 @@ axios.interceptors.response.use(
|
|
|
});
|
|
|
throw Error(res.statusText);
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
if (res.status === 401) {
|
|
|
ElMessage.error({
|