diff --git a/src/lycomponents/iHeader/index.vue b/src/lycomponents/iHeader/index.vue index 2602957..d3a39d7 100644 --- a/src/lycomponents/iHeader/index.vue +++ b/src/lycomponents/iHeader/index.vue @@ -73,16 +73,19 @@ export default { week: "", intDt: null, selDatas: [], - timeShow: true + timeShow: true, }; }, watch: { - $route(to) { - if(to.path === '/eventDEC') { - this.timeShow = false; - } else { - this.timeShow = true; - } + $route: { + handler(val) { + if (val.path === "/eventDEC") { + this.timeShow = false; + } else { + this.timeShow = true; + } + }, + immediate: true, }, }, created() {