优化
This commit is contained in:
@@ -9,6 +9,10 @@
|
||||
|
||||
import CouponItem from './components/coupon-item.vue';
|
||||
import { getCouponList } from '@/api/user';
|
||||
import { useUserStore } from '@/store';
|
||||
|
||||
const store = useUserStore();
|
||||
const { userInfo } = storeToRefs(store);
|
||||
|
||||
const coupons = ref([{
|
||||
id: 1,
|
||||
@@ -65,7 +69,7 @@ const coupons = ref([{
|
||||
onLoad(async () => {
|
||||
const { data } = await getCouponList({
|
||||
obj: {
|
||||
memberId: item?.id, status: 0
|
||||
memberId: userInfo.value?.id, status: 0
|
||||
}, pageNum: 1, pageSize: 1000
|
||||
});
|
||||
coupons.value = data.list;
|
||||
|
Reference in New Issue
Block a user