Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sup-server
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
Administrator
sup-server
Commits
ed4cf5ec
Commit
ed4cf5ec
authored
Nov 11, 2022
by
tyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0aaa8737
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
index.js
dsk-srm-server/src/router/index.js
+1
-0
permission.js
dsk-srm-server/src/router/permission.js
+1
-3
No files found.
dsk-srm-server/src/router/index.js
View file @
ed4cf5ec
...
...
@@ -64,6 +64,7 @@ const routes = [
const
router
=
new
VueRouter
({
mode
:
'history'
,
base
:
process
.
env
.
BASE_URL
,
routes
});
export
default
router
;
...
...
dsk-srm-server/src/router/permission.js
View file @
ed4cf5ec
...
...
@@ -39,9 +39,7 @@ router.beforeEach((to, from, next) => {
if
(
to
.
meta
?.
needToken
===
false
)
{
next
();
}
else
{
next
({
path
:
"/login"
});
next
();
}
}
});
\ No newline at end of file
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