瀏覽代碼

bug 修复

lilei 4 年之前
父節點
當前提交
9d2b4128d6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/utils/request.js

+ 1 - 1
src/utils/request.js

@@ -49,7 +49,7 @@ service.interceptors.request.use(config => {
 service.interceptors.response.use((response) => {
 service.interceptors.response.use((response) => {
   console.log(response, 'response.data.status')
   console.log(response, 'response.data.status')
   if (window.location.pathname != '/user/login') {
   if (window.location.pathname != '/user/login') {
-    if (response.data.status == '500') {
+    if (response.data.status == '500' || response.data.status == '900') {
       notification.destroy()
       notification.destroy()
       notification.error({
       notification.error({
         message: '提示',
         message: '提示',