liwei19941102 hace 1 año
padre
commit
ac283e9e4e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/utils/request.ts

+ 2 - 1
src/utils/request.ts

@@ -139,7 +139,8 @@ service.interceptors.response.use(
       }
       }
       return Promise.reject('无效的会话,或者会话已过期,请重新登录。');
       return Promise.reject('无效的会话,或者会话已过期,请重新登录。');
     } else if (code === HttpStatus.SERVER_ERROR) {
     } else if (code === HttpStatus.SERVER_ERROR) {
-      console.log(msg);
+      // console.log(msg);
+      ElMessage.error(msg);
       let msg1 = msg;
       let msg1 = msg;
       if (msg == '设备不在线') {
       if (msg == '设备不在线') {
         msg1 = '摄像设备不在线';
         msg1 = '摄像设备不在线';