From 5362555d0606d1f194050cea2262a775983d7b2e Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Fri, 5 Aug 2022 17:57:26 +0800 Subject: [PATCH] update --- src/layout/components/AppMain.vue | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index 0cf6bc6..35e3b90 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -25,23 +25,23 @@ export default { }, key() { return this.$route.path - }, - watch: { - '$route.path': { - handler: function() { - // define ads element - const ads = document.getElementById('ww-container') - // ad parent node - const prn = ads.parentNode - // lets clone ads block - const cln = ads.cloneNode(true) - // remove the current ads block completely - prn.removeChild(ads) - // append a newly cloned one - prn.appendChild(cln) - } - } } + // watch: { + // '$route.path': { + // handler: function() { + // // define ads element + // const ads = document.getElementById('ww-container') + // // ad parent node + // const prn = ads.parentNode + // // lets clone ads block + // const cln = ads.cloneNode(true) + // // remove the current ads block completely + // prn.removeChild(ads) + // // append a newly cloned one + // prn.appendChild(cln) + // } + // } + // } } }