Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-science-front
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐俊
yn-science-front
Commits
374d80e6
Commit
374d80e6
authored
Dec 04, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
33333
parent
f99ef3bf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
index.js
src/router/index.js
+0
-4
login.vue
src/views/login/login.vue
+1
-1
No files found.
src/router/index.js
View file @
374d80e6
...
...
@@ -329,10 +329,6 @@ router.beforeEach(async (to, from, next) => {
NProgress
.
done
()
}
}
else
{
if
(
!!!
hasUser
.
projType
)
{
setType
(
hasUser
.
type
+
''
)
this
.
$store
.
commit
(
'app/setProjType'
,
hasUser
.
type
)
}
await
store
.
dispatch
(
'app/auth'
,
to
.
path
)
next
()
NProgress
.
done
()
...
...
src/views/login/login.vue
View file @
374d80e6
...
...
@@ -133,7 +133,7 @@ export default {
this
.
$message
.
success
(
'登录成功!'
);
setToken
(
data
.
access_token
)
//this.$router.push({ path: this.redirect || '/home', query: this.otherQuery })
this
.
$router
.
push
({
path
:
'/
home
'
})
this
.
$router
.
push
({
path
:
'/'
})
}
else
{
this
.
getCode
()
...
...
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