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

perf: 优化水印

parent 8a7ae3c0
......@@ -14,12 +14,13 @@ export default {
...mapState("user", ["licenseInfo"]),
},
watch: {
"licenseInfo.isExpire"(newVal) {
if (!newVal) {
this.show = false;
} else {
this.show = true;
}
licenseInfo: {
handler(newVal) {
if (!newVal.isExpire) {
this.show = false;
}
},
deep: true,
},
},
mounted() {
......
......@@ -26,7 +26,6 @@ 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);
Vue.prototype.$licenseHintModal();
let date = moment().format("YYYY-MM-DD");
let getDate = store.getters["user/licenseInfo"].date;
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