diff --git a/src/components/model-seckill/index.vue b/src/components/model-seckill/index.vue index 794c354d..1db8a060 100644 --- a/src/components/model-seckill/index.vue +++ b/src/components/model-seckill/index.vue @@ -47,7 +47,7 @@
-
{{ item.title }}
+
{{ item.title }}
@@ -115,7 +115,7 @@
-
{{ item.title }}
+
{{ item.title }}
@@ -275,10 +275,11 @@ const default_list = { ], }; const list = ref([]); -onBeforeMount(() => { - SeckillAPI.getSeckillList((res: any) => { +onMounted(() => { + console.log('aaaa'); + SeckillAPI.getSeckillList({}).then((res: any) => { const data = res.data; - console.log(data); + console.log(res.data); if (!isEmpty(data.current)) { list.value = data.current.goods; } else {