From bdb5a1128c16d25658a8dba566d6eb95bbfb1125 Mon Sep 17 00:00:00 2001 From: dzq Date: Sat, 10 May 2025 09:54:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E8=AE=A2=E5=8D=95=E9=A1=B5=E9=9D=A2):?= =?UTF-8?q?=20=E7=A7=BB=E9=99=A4=E9=BB=98=E8=AE=A4=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E4=B8=AA=E6=9F=9C=E5=AD=90=E5=B9=B6=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E6=9F=A5=E8=AF=A2=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除 `onMounted` 钩子中默认选择第一个柜子并触发查询的逻辑,改为由用户手动选择柜子后触发查询,以提高用户体验和灵活性。 --- src/views/shop/order/index.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/views/shop/order/index.vue b/src/views/shop/order/index.vue index 26d549b..fbd12e0 100644 --- a/src/views/shop/order/index.vue +++ b/src/views/shop/order/index.vue @@ -42,10 +42,6 @@ const dataList = ref([]); onMounted(async () => { const { data } = await allCabinets(); cabinets.value = data; - if (data.length > 0) { - searchFormParams.value.cabinetId = data[0].cabinetId; - getList(); - } }); const getList = async () => {