提交 6f7d89e9 authored 作者: haodaking's avatar haodaking

fix: 登录地址修改

上级 d5e2958a
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
.then(str => { .then(str => {
window.G.UserInfo = {} window.G.UserInfo = {}
// this.$router.push({ path: '/login/index' }) // this.$router.push({ path: '/login/index' })
window.location.href = webConf.others.loginUrl window.location.href = `${webConf.others.loginUrl}?rd=${encodeURIComponent(window.location.href)}`
}) })
.catch(e => { .catch(e => {
this.$message.error(e.message) this.$message.error(e.message)
......
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
export default { export default {
data() { data() {
return { return {
loginUrl: webConf.others.loginUrl loginUrl: `${webConf.others.loginUrl}?rd=${encodeURIComponent(window.location.origin)}`
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论