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
3076d301
Commit
3076d301
authored
Aug 07, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 暂时取消证书校验
parent
2937a90a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
portal-manager-ui/admin/src/router/index.js
portal-manager-ui/admin/src/router/index.js
+12
-12
No files found.
portal-manager-ui/admin/src/router/index.js
View file @
3076d301
...
...
@@ -26,18 +26,18 @@ router.beforeEach(async (to, from, next) => {
// 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
();
// 打开水印
Vue
.
prototype
.
$watermark
();
}
//
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();
//
// 打开水印
//
Vue.prototype.$watermark();
//
}
if
(
islogin
)
{
next
();
// if (routerPath.includes(to.path) || bol) {
...
...
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