From a87225dcd926d2c1441387435b6b7d3122bf6435 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 11 Nov 2024 17:08:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor(order):=20=E5=B0=86=20getLists()=20?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E7=A7=BB=E8=87=B3=20onMounted=20=E9=92=A9?= =?UTF-8?q?=E5=AD=90=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 优化代码结构,确保在组件挂载后获取列表数据 - 提高代码的可读性和性能 --- src/views/order/beforehand_order_cart_info/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/order/beforehand_order_cart_info/index.vue b/src/views/order/beforehand_order_cart_info/index.vue index 7c01d82a9..5042d221c 100644 --- a/src/views/order/beforehand_order_cart_info/index.vue +++ b/src/views/order/beforehand_order_cart_info/index.vue @@ -110,5 +110,7 @@ const { pager, getLists, resetParams, resetPage } = usePaging({ params: queryParams }) -getLists() +onMounted(() => { + getLists() +})