[代码优化](v2.6):修复重新登录后重定向参数丢失,具体查看如下 issues
close https://github.com/elunez/eladmin/issues/584
This commit is contained in:
@@ -74,8 +74,8 @@ export default {
|
||||
watch: {
|
||||
$route: {
|
||||
handler: function(route) {
|
||||
if (route.query) {
|
||||
const data = route.query
|
||||
const data = route.query
|
||||
if (data && data.redirect) {
|
||||
this.redirect = data.redirect
|
||||
delete data.redirect
|
||||
this.redirect = this.redirect + '&' + qs.stringify(data, { indices: false })
|
||||
|
||||
Reference in New Issue
Block a user