From 25570a9ecd9b10a865fd7ce2614410814aaf52eb Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期五, 28 三月 2025 17:54:40 +0800 Subject: [PATCH] 修复网格样式中删除一组数据后,表格没有联动的问题 --- src/stores/device.js | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/stores/device.js b/src/stores/device.js index f17f37e..82adade 100644 --- a/src/stores/device.js +++ b/src/stores/device.js @@ -21,7 +21,9 @@ return deviceApi .fethchDevice({ type: type, page, pageSize }) .then((res) => { - deviceList.value = res.data; + deviceList.value = res.data.sort((a, b) => { + return a.deviceCode < b.deviceCode ? -1 : 1; + }); return res; }); }); -- Gitblit v1.9.3