Explorar o código

if(this.screenWidth > 768) {

xiebaomin %!s(int64=2) %!d(string=hai) anos
pai
achega
1d240ac921
Modificáronse 1 ficheiros con 16 adicións e 0 borrados
  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() {
     this.network().fetchBannerData()
   },