Commit c5fbcac7 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化水印

No related merge requests found
...@@ -14,12 +14,13 @@ export default { ...@@ -14,12 +14,13 @@ export default {
...mapState("user", ["licenseInfo"]), ...mapState("user", ["licenseInfo"]),
}, },
watch: { watch: {
"licenseInfo.isExpire"(newVal) { licenseInfo: {
if (!newVal) { handler(newVal) {
this.show = false; if (!newVal.isExpire) {
} else { this.show = false;
this.show = true; }
} },
deep: true,
}, },
}, },
mounted() { mounted() {
......
...@@ -26,7 +26,6 @@ router.beforeEach(async (to, from, next) => { ...@@ -26,7 +26,6 @@ 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);
Vue.prototype.$licenseHintModal();
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) {
......
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