Просмотр исходного кода

Fix 上传组件失效及登录失效没有弹窗的问题

Yue 8 месяцев назад
Родитель
Сommit
eb74053151

+ 1 - 1
UI/VAP_V3.VUE/src/components/upload/ImportModal.vue

@@ -57,7 +57,7 @@ const url = computed(() => {
 			}
 		}
 	}
-	return `${opts.value.url}${queryParams}}`
+	return `${opts.value.url}${queryParams}`
 })
 
 function submitUpload() {

+ 2 - 0
UI/VAP_V3.VUE/src/router/index.ts

@@ -134,6 +134,7 @@ router.beforeEach((to, _from, next) => {
 				authStore
 					.getInfo()
 					.then(() => {
+						isReLogin.show = false
 						if (to.path.search("/redirect-tenant") == 0) {
 							next({ ...to, replace: true })
 						} else {
@@ -143,6 +144,7 @@ router.beforeEach((to, _from, next) => {
 						}
 					})
 					.catch((err) => {
+						isReLogin.show = false
 						authStore.logout().then(() => {
 							message.msgError(err)
 							next({ path: import.meta.env.VITE_APP_CONTEXT_PATH + "home" })