浏览代码

feat(axios): temp hide error

gemercheung 3 年之前
父节点
当前提交
a437bc06c8
共有 2 个文件被更改,包括 6 次插入4 次删除
  1. 4 4
      src/utils/http/axios/index.ts
  2. 2 0
      src/views/scenes/list.vue

+ 4 - 4
src/utils/http/axios/index.ts

@@ -82,10 +82,10 @@ const transform: AxiosTransform = {
         if (message) {
           timeoutMsg = message;
         }
-        //TODO 由于后端HACKCODE error当信息string
-        if (error) {
-          timeoutMsg = error;
-        }
+      //TODO 由于后端HACKCODE error当信息string
+      // if (error) {
+      //   timeoutMsg = error;
+      // }
     }
 
     // errorMessageMode=‘modal’的时候会显示modal错误弹窗,而不是消息提示,用于一些比较重要的错误

+ 2 - 0
src/views/scenes/list.vue

@@ -77,11 +77,13 @@
         {
           title: t('routes.scenes.sceneName'),
           dataIndex: 'sceneName',
+          ellipsis: false,
           width: 120,
         },
         {
           title: t('routes.corporation.enterpriseName'),
           dataIndex: 'companyName',
+          ellipsis: false,
           width: 120,
         },
         {