Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
a9d231ee
Commit
a9d231ee
authored
Jan 11, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:优化初始跳转
parent
968aa1f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
sample-form-manager-ui/admin/src/router/index.js
sample-form-manager-ui/admin/src/router/index.js
+6
-7
No files found.
sample-form-manager-ui/admin/src/router/index.js
View file @
a9d231ee
...
@@ -35,14 +35,13 @@ router.beforeEach((to, from, next) => {
...
@@ -35,14 +35,13 @@ router.beforeEach((to, from, next) => {
let
islogin
=
local
.
getLocal
(
"
sampleToken
"
)
?
true
:
false
;
let
islogin
=
local
.
getLocal
(
"
sampleToken
"
)
?
true
:
false
;
if
(
islogin
)
{
if
(
islogin
)
{
next
();
next
();
}
else
{
if
(
to
.
path
===
"
/jump
"
)
{
next
();
}
else
{
}
else
{
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
+
"
/#/
"
;
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
+
"
/#/
"
;
// 再次判断防止死循环
// if (to.path === "/login") {
// next();
// } else {
// next({ path: "/login" });
// next({ path: "/login" });
//
}
}
}
}
});
});
...
...
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