types(Coupon): use tsx (#8088)

This commit is contained in:
neverland
2021-02-05 10:53:16 +08:00
committed by GitHub
parent 08f032e431
commit 1b75c706ab
3 changed files with 27 additions and 22 deletions
+2 -2
View File
@@ -26,7 +26,7 @@
<script lang="ts">
import { computed, reactive, toRefs } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { Coupon } from '../../coupon/shared';
import { CouponInfo } from '../../coupon';
import Toast from '../../toast';
const i18n = {
@@ -57,7 +57,7 @@ export default {
const state = reactive({
showList: false,
chosenCoupon: -1,
exchangedCoupons: [] as Coupon[],
exchangedCoupons: [] as CouponInfo[],
});
const coupon = computed(() => ({