From 026f17ebafb85250d9ae9b71b80ae5f07341c172 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 15 五月 2025 16:33:12 +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