无人机管理后台前端(已迁走)
zhongrj
2025-01-03 02f33eccc268c7daac8ab561044f32859d8864de
src/axios.js
@@ -114,7 +114,7 @@
      NProgress.done();
      const status = res.data.error_code || res.data.code || res.status;
      const statusWhiteList = website.statusWhiteList || [];
      const message = res.data.msg || res.data.error_description || '系统错误';
      const message = res.data.msg || res.data.error_description || res.data.message ||'系统错误';
      const config = res.config;
      const cryptoData = config.cryptoData === true;
      //如果在白名单里则自行catch逻辑处理
@@ -191,7 +191,7 @@
         return Promise.reject(new Error(message));
      }
      // 如果请求为非200默认统一处理
      if (status !== 200) {
      if (status !== 200 && status !== 0) {
         if (!isErrorShown) {
            ElMessage({
               message: message,