소스 검색

三方进入地址问题处理,

canghailong 5 달 전
부모
커밋
bd632de523
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/views/portal/components/Header.vue

+ 5 - 1
src/views/portal/components/Header.vue

@@ -119,7 +119,6 @@
 						tool.data.remove('MENU')
 						tool.data.remove('PERMISSIONS')
 						tool.cookie.remove('Token')
-						Modal.destroyAll();
 						router.replace({ path: '/slogin' })
 					})
 					.catch(() => {
@@ -127,6 +126,11 @@
 						router.replace({ path: '/slogin' })
 						location.reload()
 					})
+					.finally(() => {
+						setTimeout(() => {
+							Modal.destroyAll()
+						}, 10)
+					})
 			},
 			onCancel() {}
 		})