Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dxgaqgl-vue
Project
Project
Details
Activity
Releases
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
李苏
dxgaqgl-vue
Commits
1dca486c
Commit
1dca486c
authored
Aug 21, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
5fabb901
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
permission.js
src/permission.js
+1
-0
app.js
src/store/modules/app.js
+3
-1
user.js
src/store/modules/user.js
+2
-0
No files found.
src/permission.js
View file @
1dca486c
...
...
@@ -6,6 +6,7 @@ import 'nprogress/nprogress.css'
import
{
getToken
}
from
'@/utils/auth'
import
{
isRelogin
}
from
'@/utils/request'
NProgress
.
configure
({
showSpinner
:
false
})
const
whiteList
=
[
'/login'
,
'/auth-redirect'
,
'/bind'
,
'/register'
]
...
...
src/store/modules/app.js
View file @
1dca486c
import
Cookies
from
'js-cookie'
import
wsNotification
from
'common/src/utils/wsNotification.js'
const
state
=
{
...
...
@@ -15,6 +16,7 @@ const state = {
const
mutations
=
{
changeInit
:
state
=>
{
wsNotification
()
state
.
isInit
=
true
},
TOGGLE_SIDEBAR
:
state
=>
{
...
...
src/store/modules/user.js
View file @
1dca486c
...
...
@@ -52,6 +52,8 @@ const user = {
setToken
(
res
.
data
.
token
)
commit
(
'SET_TOKEN'
,
res
.
data
.
token
)
setUserid
(
res
.
data
.
userid
)
resolve
()
}).
catch
(
error
=>
{
reject
(
error
)
...
...
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