diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx index d889c7540..5782b9a9f 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx @@ -1,5 +1,4 @@ /* eslint-disable vue/one-component-per-file */ -// TODO @YunaiV eslint检测了 import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTemplate'; import { defineComponent } from 'vue'; diff --git a/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx b/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx index b09a30966..5782b9a9f 100644 --- a/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx +++ b/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/component.tsx @@ -1,3 +1,4 @@ +/* eslint-disable vue/one-component-per-file */ import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTemplate'; import { defineComponent } from 'vue'; diff --git a/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/property.vue b/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/property.vue index d84038775..174f767a6 100644 --- a/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/property.vue +++ b/apps/web-ele/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/property.vue @@ -24,7 +24,7 @@ import { ElTooltip, } from 'element-plus'; -import * as CouponTemplateApi from '#/api/mall/promotion/coupon/couponTemplate'; +import { getCouponTemplateList } from '#/api/mall/promotion/coupon/couponTemplate'; import UploadImg from '#/components/upload/image-upload.vue'; import { ColorInput } from '#/views/mall/promotion/components'; import CouponSelect from '#/views/mall/promotion/coupon/components/select.vue'; @@ -65,9 +65,7 @@ watch( () => formData.value.couponIds, async () => { if (formData.value.couponIds?.length > 0) { - couponList.value = await CouponTemplateApi.getCouponTemplateList( - formData.value.couponIds, - ); + couponList.value = await getCouponTemplateList(formData.value.couponIds); } }, {