Commit 3076d301 authored by “yiyousong”'s avatar “yiyousong”

perf: 暂时取消证书校验

parent 2937a90a
...@@ -26,18 +26,18 @@ router.beforeEach(async (to, from, next) => { ...@@ -26,18 +26,18 @@ router.beforeEach(async (to, from, next) => {
// let routerPath = store.getters["user/routerList"]; // let routerPath = store.getters["user/routerList"];
// let toRootPathArr = to.matched.map((v) => v.path); // let toRootPathArr = to.matched.map((v) => v.path);
// let bol = hasIntersection(toRootPathArr, routerPath); // let bol = hasIntersection(toRootPathArr, routerPath);
let date = moment().format("YYYY-MM-DD"); // let date = moment().format("YYYY-MM-DD");
let getDate = store.getters["user/licenseInfo"].date; // let getDate = store.getters["user/licenseInfo"].date;
if (!getDate || date != getDate) { // if (!getDate || date != getDate) {
await store.dispatch("user/checkCipher"); // await store.dispatch("user/checkCipher");
} // }
let licenseInfo = store.getters["user/licenseInfo"]; // let licenseInfo = store.getters["user/licenseInfo"];
if (licenseInfo.isExpire) { // if (licenseInfo.isExpire) {
// 打开弹窗 // // 打开弹窗
Vue.prototype.$licenseHintModal(); // Vue.prototype.$licenseHintModal();
// 打开水印 // // 打开水印
Vue.prototype.$watermark(); // Vue.prototype.$watermark();
} // }
if (islogin) { if (islogin) {
next(); next();
// if (routerPath.includes(to.path) || bol) { // if (routerPath.includes(to.path) || bol) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment