提交 0aca1d6e authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 8ee1afb0
...@@ -76,9 +76,12 @@ export default { ...@@ -76,9 +76,12 @@ export default {
this.$message({ type: 'success', message: this.$t('loginPwd.successMessage') }) this.$message({ type: 'success', message: this.$t('loginPwd.successMessage') })
const { info } = response.data const { info } = response.data
if (this.nextUrl) { if (this.nextUrl) {
let query = info ? `id=${info.id}&username=${info.username}&mobile=${info.mobile}` : '' let queryString = ''
query = this.nextUrl.includes('?') ? `&${query}` : `?${query}` if (info) {
window.location.href = this.nextUrl + query const temp = `id=${info.id}&username=${info.username}&mobile=${info.mobile}`
queryString = this.nextUrl.includes('?') ? `&${temp}` : `?${temp}`
}
window.location.href = this.nextUrl + queryString
} else { } else {
this.$emit('success', response) this.$emit('success', response)
} }
......
...@@ -86,9 +86,12 @@ export default { ...@@ -86,9 +86,12 @@ export default {
this.$message({ type: 'success', message: this.$t('loginCode.successMessage') }) this.$message({ type: 'success', message: this.$t('loginCode.successMessage') })
const { info } = response.data const { info } = response.data
if (this.nextUrl) { if (this.nextUrl) {
let query = info ? `id=${info.id}&username=${info.username}&mobile=${info.mobile}` : '' let queryString = ''
query = this.nextUrl.includes('?') ? `&${query}` : `?${query}` if (info) {
window.location.href = this.nextUrl + query const temp = `id=${info.id}&username=${info.username}&mobile=${info.mobile}`
queryString = this.nextUrl.includes('?') ? `&${temp}` : `?${temp}`
}
window.location.href = this.nextUrl + queryString
} else { } else {
this.$emit('success', response) this.$emit('success', response)
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论