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

perf: 暂时取消证书校验

parent 2937a90a
......@@ -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) {
......
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