fix: 修复dashboard页mock返回数据显示错误

This commit is contained in:
zhouyuf
2022-05-28 17:24:00 +08:00
parent 9bcd6d9700
commit c257ca0948
2 changed files with 6 additions and 6 deletions

View File

@@ -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;
});
</script>