Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_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
赵啸非
smart_gov_platform
Commits
bea0c4a0
Commit
bea0c4a0
authored
Jul 15, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化证书校验
parent
c2260dbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
portal-manager-ui/admin/src/router/index.js
portal-manager-ui/admin/src/router/index.js
+5
-5
No files found.
portal-manager-ui/admin/src/router/index.js
View file @
bea0c4a0
...
...
@@ -23,14 +23,14 @@ const router = new VueRouter({
});
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
let
islogin
=
store
.
getters
[
"
user/token
"
];
let
date
=
moment
().
format
(
"
YYYY-MM-DD
"
);
if
(
date
!=
store
.
getters
[
"
user/licenseInfo
"
].
date
)
{
await
store
.
dispatch
(
"
user/checkCipher
"
);
}
// let routerPath = store.getters["user/routerList"];
// let toRootPathArr = to.matched.map((v) => v.path);
// let bol = hasIntersection(toRootPathArr, routerPath);
let
date
=
moment
().
format
(
"
YYYY-MM-DD
"
);
let
getDate
=
store
.
getters
[
"
user/licenseInfo
"
].
date
;
if
(
!
getDate
||
date
!=
getDate
)
{
await
store
.
dispatch
(
"
user/checkCipher
"
);
}
let
licenseInfo
=
store
.
getters
[
"
user/licenseInfo
"
];
if
(
licenseInfo
.
isExpire
)
{
Vue
.
prototype
.
$licenseHintModal
();
...
...
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