魏超 5 лет назад
Родитель
Сommit
37cdedb476
2 измененных файлов: 6 добавлений и 6 удалений
  1. 1
    1
      src/pages/channel/index.jsx
  2. 5
    5
      src/utils/request.js

+ 1
- 1
src/pages/channel/index.jsx Просмотреть файл

@@ -101,7 +101,7 @@ function header(props) {
101 101
       dataIndex: 'userName',
102 102
       key: 'userName',
103 103
       align: 'center',
104
-      render: (x, row) => <span>{row.userName === null ? row.channelTel : row.userName}</span>,
104
+      render: (x, row) => <span>{row.userName === null || row.userName === '' ? row.channelTel : row.userName}</span>,
105 105
     },
106 106
     {
107 107
       title: '小程序总数',

+ 5
- 5
src/utils/request.js Просмотреть файл

@@ -85,11 +85,11 @@ request.interceptors.response.use(async (response, options) => {
85 85
       const { code, data, message } = await response.clone().json();
86 86
       if (code != 1000) {
87 87
         if (code === 1001) {
88
-          notification.error({
89
-            message: `请登录系统`,
90
-            // description: '请登录系统',
91
-          });
92
-          throw new Error('请登录系统');
88
+          // notification.error({
89
+          //   message: `请登录系统`,
90
+          //   // description: '请登录系统',
91
+          // });
92
+          // throw new Error('请登录系统');
93 93
         } else {
94 94
           notification.error({
95 95
             message: message,