Merge pull request #10143 from dataease/pr@dev-v2@fix_distributed_xpack_login

fix(X-Pack): 分布式X-Pack登录无法跳转
This commit is contained in:
fit2cloud-chenyw
2024-06-06 12:16:31 +08:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -117,8 +117,12 @@ const handleLogin = () => {
if (!xpackLoadFail.value && xpackInvalidPwd.value?.invokeMethod) {
const param = {
methodName: 'init',
args: () => {
duringLogin.value = false
args: r => {
duringLogin.value = !!r
if (r) {
const queryRedirectPath = getCurLocation()
router.push({ path: queryRedirectPath })
}
}
}
xpackInvalidPwd?.value.invokeMethod(param)