Przeglądaj źródła

修改后台接口503前端loading状态bug

xiezhiming 3 lat temu
rodzic
commit
193455a3d0
1 zmienionych plików z 5 dodań i 2 usunięć
  1. 5 2
      src/components/safeControl/TokenControl.vue

+ 5 - 2
src/components/safeControl/TokenControl.vue

@@ -106,7 +106,7 @@
 import api from '@api/safeControl.js';
 import config from '@api/config.js';
 import $ from 'jquery';
-
+import { Message } from 'element-ui';
 export default {
     name: 'TokenControl',
     data: function() {
@@ -170,7 +170,10 @@ export default {
                     this.currentPage=this.inCurrentPage;
                     this.inCurrentPage = undefined;
                 }
-            })
+            }).catch((res)=>{
+				loading.close()
+				Message.error('服务器出小差了,请稍后再试');
+			})
         },
         filterDatas() {
             this.currentPage = 1;