[代码优化](v2.6):修复重新登录后重定向参数丢失,具体查看如下 issues

close https://github.com/elunez/eladmin/issues/584
This commit is contained in:
Zheng Jie
2021-03-03 14:49:10 +08:00
parent ec40e7fd8b
commit 04c1ab9923

View File

@@ -74,8 +74,8 @@ export default {
watch: { watch: {
$route: { $route: {
handler: function(route) { handler: function(route) {
if (route.query) { const data = route.query
const data = route.query if (data && data.redirect) {
this.redirect = data.redirect this.redirect = data.redirect
delete data.redirect delete data.redirect
this.redirect = this.redirect + '&' + qs.stringify(data, { indices: false }) this.redirect = this.redirect + '&' + qs.stringify(data, { indices: false })