diff --git a/src/components/model-coupon/index.vue b/src/components/model-coupon/index.vue index 51107497..1bf75392 100644 --- a/src/components/model-coupon/index.vue +++ b/src/components/model-coupon/index.vue @@ -194,9 +194,9 @@ const theme_bg_img = ref({ }); // 初始化数据 onMounted(() => { - if (!isEmpty(form.value.data_list) && form.value.data_type == '1') { + if (!isEmpty(form.value.data_list) && form.value.data_type == '0') { data_list.value = form.value.data_list; - } else if (form.value.data_type == '0') { + } else if (form.value.data_type == '1') { if (!isEmpty(form.value.data_auto_list)) { data_list.value = form.value.data_auto_list; } else { @@ -243,7 +243,7 @@ const data_list_computer = computed(() => { watch( () => data_list_computer.value, (new_value) => { - if (new_value.data_type == '0') { + if (new_value.data_type == '1') { get_coupon(); } else { if (!isEmpty(form.value.data_list)) { diff --git a/src/components/model-coupon/model-coupon-content.vue b/src/components/model-coupon/model-coupon-content.vue index b9b840d2..104a2f73 100644 --- a/src/components/model-coupon/model-coupon-content.vue +++ b/src/components/model-coupon/model-coupon-content.vue @@ -17,7 +17,7 @@ {{ item.name }} -