zhangjie 1 năm trước cách đây
mục cha
commit
645d34136f
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/plugins/axios.js

+ 6 - 0
src/plugins/axios.js

@@ -191,6 +191,12 @@ const errorDataCallback = (response) => {
         }
       },
     });
+  } else if (error.code === 503002) {
+    Notification.error({
+      title: "错误提示",
+      message: "请求过于频繁,请稍后再尝试!",
+    });
+    return error;
   } else {
     Notification.error({ title: "错误提示", message });
   }