提交 f56b2b18 authored 作者: lidongxu's avatar lidongxu

refactor(login): 修复退出登录后_url上还带之前 state 参数的问题

同上
上级 ae1b01ab
......@@ -112,7 +112,9 @@ function logout() {
type: 'warning'
}).then(() => {
userStore.logOut().then(() => {
location.href = '#/login';
// 当前域名+路径
const currentUrl = window.location.origin + window.location.pathname;
location.href = currentUrl;
})
}).catch(() => { });
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论