diff --git a/src/views/login/components/LoginForm.vue b/src/views/login/components/LoginForm.vue index d599aec05..578cd990c 100644 --- a/src/views/login/components/LoginForm.vue +++ b/src/views/login/components/LoginForm.vue @@ -241,16 +241,6 @@ // 登录 const handleLogin = async () => { console.log('登录-185') - if(getSystermUpdateAlert()=='true'||getSystermUpdateAlert()===true){ - await ElMessageBox.alert( - '系统迁移,请移步至' + - `${getSystermUpdateUrl()}`, - '重要提示', - { - dangerouslyUseHTMLString: true, - } - ) - } loginLoading.value = true try { @@ -297,6 +287,16 @@ authUtil.removeLoginForm() } authUtil.setToken(res) + if(getSystermUpdateAlert()=='true'||getSystermUpdateAlert()===true){ + await ElMessageBox.alert( + '系统迁移,请移步至' + + `${getSystermUpdateUrl()}`, + '重要提示', + { + dangerouslyUseHTMLString: true, + } + ) + } if (!redirect.value) { redirect.value = '/' }