|
|
@@ -1,7 +1,7 @@
|
|
|
<!--Lab4新增,全部优惠券界面-->
|
|
|
<script setup lang="ts">
|
|
|
import {computed, ref} from "vue"
|
|
|
-import {createCoupons, getCouponGroups, getCoupons, receiveCouponGroup} from "../../api/coupon"
|
|
|
+import {createCoupon, getCouponGroups, getCoupons, receiveCouponGroup} from "../../api/coupon"
|
|
|
import {userInfo} from "../../api/user"
|
|
|
import {parseCouponType} from "../../utils"
|
|
|
|
|
|
@@ -74,7 +74,7 @@ function handleCreateCoupon() {
|
|
|
rest: rest.value
|
|
|
}
|
|
|
couponDialogVisible.value = false
|
|
|
- createCoupons(payload).then(res => {
|
|
|
+ createCoupon(payload).then(res => {
|
|
|
if (res.data.code === '000') {
|
|
|
ElMessage({
|
|
|
message: '创建优惠券成功!',
|