|
@@ -13,8 +13,10 @@ const emits = defineEmits<{
|
|
|
cancel: [message: Message]
|
|
|
selectCoupon: [coupons: any[]]
|
|
|
}>()
|
|
|
-const { data: coupons, run: setCoupons } = useRequest(() =>
|
|
|
- getPointsCoupons({ userId: props.options.designerId, businessId: props.options.businessId }),
|
|
|
+const { data: coupons, run: setCoupons } = useRequest(
|
|
|
+ () =>
|
|
|
+ getPointsCoupons({ userId: props.options.designerId, businessId: props.options.businessId }),
|
|
|
+ { initialData: [] },
|
|
|
)
|
|
|
onMounted(async () => {
|
|
|
if (
|