diff --git a/src/components/CountTo/CountTo.vue b/src/components/CountTo/CountTo.vue index 9576a82..7b4d015 100644 --- a/src/components/CountTo/CountTo.vue +++ b/src/components/CountTo/CountTo.vue @@ -46,7 +46,7 @@ const source = ref(props.startVal); const disabled = ref(false); let outputValue = useTransition(source); - + const value = computed(() => formatNumber(unref(outputValue))); watchEffect(() => { diff --git a/src/views/dashboard/console/console.vue b/src/views/dashboard/console/console.vue index a4678c9..e476e65 100644 --- a/src/views/dashboard/console/console.vue +++ b/src/views/dashboard/console/console.vue @@ -324,11 +324,11 @@ ]; onMounted(async () => { - const { visits, saleroom, orderLarge, volume } = await getConsoleInfo(); - visits.value = visits; - saleroom.value = saleroom; - orderLarge.value = orderLarge; - volume.value = volume; + const data = await getConsoleInfo(); + visits.value = data.visits; + saleroom.value = data.saleroom; + orderLarge.value = data.orderLarge; + volume.value = data.volume; loading.value = false; });