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
Hide 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'
...
@@ -6,6 +6,7 @@ import 'nprogress/nprogress.css'
import
{
getToken
}
from
'@/utils/auth'
import
{
getToken
}
from
'@/utils/auth'
import
{
isRelogin
}
from
'@/utils/request'
import
{
isRelogin
}
from
'@/utils/request'
NProgress
.
configure
({
showSpinner
:
false
})
NProgress
.
configure
({
showSpinner
:
false
})
const
whiteList
=
[
'/login'
,
'/auth-redirect'
,
'/bind'
,
'/register'
]
const
whiteList
=
[
'/login'
,
'/auth-redirect'
,
'/bind'
,
'/register'
]
...
...
src/store/modules/app.js
View file @
1dca486c
import
Cookies
from
'js-cookie'
import
Cookies
from
'js-cookie'
import
wsNotification
from
'common/src/utils/wsNotification.js'
const
state
=
{
const
state
=
{
...
@@ -13,8 +14,9 @@ const state = {
...
@@ -13,8 +14,9 @@ const state = {
}
}
const
mutations
=
{
const
mutations
=
{
changeInit
:
state
=>
{
changeInit
:
state
=>
{
wsNotification
()
state
.
isInit
=
true
state
.
isInit
=
true
},
},
TOGGLE_SIDEBAR
:
state
=>
{
TOGGLE_SIDEBAR
:
state
=>
{
...
...
src/store/modules/user.js
View file @
1dca486c
...
@@ -52,6 +52,8 @@ const user = {
...
@@ -52,6 +52,8 @@ const user = {
setToken
(
res
.
data
.
token
)
setToken
(
res
.
data
.
token
)
commit
(
'SET_TOKEN'
,
res
.
data
.
token
)
commit
(
'SET_TOKEN'
,
res
.
data
.
token
)
setUserid
(
res
.
data
.
userid
)
setUserid
(
res
.
data
.
userid
)
resolve
()
resolve
()
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
reject
(
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