cxmo 1 жил өмнө
parent
commit
9c2245c114
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      src/App.vue

+ 5 - 0
src/App.vue

@@ -22,6 +22,11 @@ function getBanner(){
 getBanner()
 getBanner()
 watch(()=>router.currentRoute.value.path,
 watch(()=>router.currentRoute.value.path,
     (path)=>{
     (path)=>{
+        //登录页不显示
+        if(path==='/login'){
+            isShowAd.value = false
+            return 
+        }
         adSrc.value.length&&(isShowAd.value = true)
         adSrc.value.length&&(isShowAd.value = true)
     }
     }
 )
 )