Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
31db8d42
Commit
31db8d42
authored
Mar 03, 2021
by
Zheng Jie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[代码优化](v2.6):修复重新登录后重定向参数丢失,具体查看如下 issues
close
https://github.com/elunez/eladmin/issues/584
parent
e6081ec7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
src/views/login.vue
+7
-1
No files found.
src/views/login.vue
View file @
31db8d42
...
@@ -46,6 +46,7 @@ import { encrypt } from '@/utils/rsaEncrypt'
...
@@ -46,6 +46,7 @@ import { encrypt } from '@/utils/rsaEncrypt'
import
Config
from
'@/settings'
import
Config
from
'@/settings'
import
{
getCodeImg
}
from
'@/api/login'
import
{
getCodeImg
}
from
'@/api/login'
import
Cookies
from
'js-cookie'
import
Cookies
from
'js-cookie'
import
qs
from
'qs'
import
Background
from
'@/assets/images/background.jpg'
import
Background
from
'@/assets/images/background.jpg'
export
default
{
export
default
{
name
:
'Login'
,
name
:
'Login'
,
...
@@ -73,7 +74,12 @@ export default {
...
@@ -73,7 +74,12 @@ export default {
watch
:
{
watch
:
{
$route
:
{
$route
:
{
handler
:
function
(
route
)
{
handler
:
function
(
route
)
{
this
.
redirect
=
route
.
query
&&
route
.
query
.
redirect
if
(
route
.
query
)
{
const
data
=
route
.
query
this
.
redirect
=
data
.
redirect
delete
data
.
redirect
this
.
redirect
=
this
.
redirect
+
'&'
+
qs
.
stringify
(
data
,
{
indices
:
false
})
}
},
},
immediate
:
true
immediate
:
true
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment