Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-manager-ui
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
赵啸非
device-manager-ui
Commits
793bdcc3
Commit
793bdcc3
authored
Oct 10, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时修改设备管理保修期
parent
69a3e02c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
32 deletions
+0
-32
public/index.html
public/index.html
+0
-11
src/router.js
src/router.js
+0
-21
No files found.
public/index.html
View file @
793bdcc3
...
...
@@ -6,10 +6,6 @@
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
/>
<link
rel=
"icon"
href=
"<%= BASE_URL %>sbgl.ico"
/>
<title></title>
<!-- <link
rel="stylesheet"
href="https://unpkg.zhimg.com/element-ui@2.15.5/lib/theme-chalk/index.css"
/>-->
<style>
@font-face
{
font-family
:
"PangMenZhengDao"
;
...
...
@@ -18,13 +14,6 @@
</style>
</head>
<body>
<noscript>
<strong
>
We're sorry but app doesn't work properly without JavaScript enabled.
Please enable it to continue.
</strong
>
</noscript>
<div
id=
"app"
></div>
</body>
</html>
src/router.js
View file @
793bdcc3
...
...
@@ -114,27 +114,6 @@ function getComponent(fileName) {
return
fileNotFound
;
}
}
//检查是否跳转到sso地址
function
ssoCheck
(
to
,
from
,
next
)
{
console
.
log
(
"
to
"
,
to
);
console
.
log
(
"
from
"
,
from
);
console
.
log
(
"
next
"
,
next
);
let
redirect
=
to
.
path
===
"
/login/updatePwd
"
?
"
/#/updatePwd
"
:
""
;
redirect
=
redirect
===
""
&&
to
.
path
===
"
/login
"
?
location
.
protocol
+
"
//
"
+
location
.
host
+
"
/#
"
+
from
.
fullPath
:
redirect
;
if
(
redirect
!=
""
)
{
next
(
false
);
window
.
location
.
href
=
"
//
"
+
location
.
host
+
"
/m/login/logout?redirect=
"
+
encodeURIComponent
(
redirect
);
return
true
;
}
return
false
;
}
router
.
afterEach
(()
=>
{
document
.
body
.
scrollTop
=
0
;
...
...
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