Ver Fonte

注释mobileIndex中ws功能

songxy há 1 ano atrás
pai
commit
7478ec49e4

+ 15 - 15
client/src/config/axios/service.ts

@@ -218,21 +218,21 @@ const handleAuthorized = () => {
   const { t } = useI18n()
   if (!isRelogin.show) {
     isRelogin.show = true
-    ElMessageBox.confirm(t('sys.api.timeoutMessage'), t('common.confirmTitle'), {
-      showCancelButton: false,
-      closeOnClickModal: false,
-      showClose: false,
-      confirmButtonText: t('login.relogin'),
-      type: 'warning'
-    }).then(() => {
-      const { wsCache } = useCache()
-      resetRouter() // 重置静态路由表
-      wsCache.clear()
-      removeToken()
-      isRelogin.show = false
-      // 干掉token后再走一次路由让它过router.beforeEach的校验
-      window.location.href = window.location.href
-    })
+    // ElMessageBox.confirm(t('sys.api.timeoutMessage'), t('common.confirmTitle'), {
+    //   showCancelButton: false,
+    //   closeOnClickModal: false,
+    //   showClose: false,
+    //   confirmButtonText: t('login.relogin'),
+    //   type: 'warning'
+    // }).then(() => {
+    const { wsCache } = useCache()
+    resetRouter() // 重置静态路由表
+    wsCache.clear()
+    removeToken()
+    isRelogin.show = false
+    // 干掉token后再走一次路由让它过router.beforeEach的校验
+    window.location.href = window.location.href
+    // })
   }
   return Promise.reject(t('sys.api.timeoutMessage'))
 }

+ 1 - 1
zjugis-workflow/src/main/resources/templates/HandlerCaseCenter/mobileIndex.ftl

@@ -144,7 +144,7 @@
 </div>
 </body>
 <script>
-    window.web_ws = '${web_ws!}';
+    <#--window.web_ws = '${web_ws!}';-->
 </script>
 <script src="https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js"></script>
 <script src="https://g.alicdn.com/gdt/jsapi/1.9.22/index.js"></script>