skyblued 2 years ago
parent
commit
238e13add5
1 changed files with 0 additions and 5 deletions
  1. 0 5
      src/views/shop-mall/index.tsx

+ 0 - 5
src/views/shop-mall/index.tsx

@@ -40,11 +40,6 @@ export default defineComponent({
   },
   mounted() {
     this.init()
-    document.addEventListener('visibilitychange', () => {
-      if (document.hidden){
-        getCartCount()
-      }
-    })
   },
   methods: {
     onSearch() {},