Browse Source

if(this.screenWidth > 768) {

xiebaomin 2 năm trước cách đây
mục cha
commit
1d240ac921
1 tập tin đã thay đổi với 16 bổ sung0 xóa
  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()
   },