refactor(订单页面): 移除默认选择第一个柜子并触发查询的逻辑

移除 `onMounted` 钩子中默认选择第一个柜子并触发查询的逻辑,改为由用户手动选择柜子后触发查询,以提高用户体验和灵活性。
This commit is contained in:
dzq 2025-05-10 09:54:09 +08:00
parent 42fee5ed40
commit bdb5a1128c
1 changed files with 0 additions and 4 deletions

View File

@ -42,10 +42,6 @@ const dataList = ref<OrderDTO[]>([]);
onMounted(async () => { onMounted(async () => {
const { data } = await allCabinets(); const { data } = await allCabinets();
cabinets.value = data; cabinets.value = data;
if (data.length > 0) {
searchFormParams.value.cabinetId = data[0].cabinetId;
getList();
}
}); });
const getList = async () => { const getList = async () => {