Browse Source

if(this.screenWidth > 768) {

xiebaomin 2 years ago
parent
commit
1d240ac921
1 changed files with 16 additions and 0 deletions
  1. 16 0
      src/views/normal/personalized/banner.vue

+ 16 - 0
src/views/normal/personalized/banner.vue

@@ -128,6 +128,22 @@ export default {
       }
       }
     }
     }
   },
   },
+  watch: {
+    'formData.jumpStatus': {
+      handler(val) {
+        if (val === 0) {
+          this.formData.filesPicture = []
+          this.formData.jumpLink = ''
+        } else if (val === 1) {
+          this.formData.jumpLink = ''
+        } else if (val === 2) {
+          this.formData.filesPicture = []
+        }
+      },
+      immediate: true,
+      deep: true
+    }
+  },
   mounted() {
   mounted() {
     this.network().fetchBannerData()
     this.network().fetchBannerData()
   },
   },