From 74a135c4f8b46d48a4997ac0e40ac86055b4a1a4 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期三, 17 四月 2024 16:57:25 +0800
Subject: [PATCH] 优化标准库

---
 src/components/view/a6-device-overview.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/view/a6-device-overview.vue b/src/components/view/a6-device-overview.vue
index 5448024..eb4bfab 100644
--- a/src/components/view/a6-device-overview.vue
+++ b/src/components/view/a6-device-overview.vue
@@ -261,15 +261,15 @@
             this.total = res.data.body.total
             let list = res.data.body.records.map(m=>{
               switch (m.deviceStatus){
-                case '0':
+                case 0:
                   // 姝e父
                   m.type ='success'
                   break;
-                case '1':
+                case 1:
                   // 鎶ュ簾
                   m.type ='warning'
                   break;
-                case '2':
+                case 2:
                   // 淇濅慨
                   m.type ='danger'
                   break;

--
Gitblit v1.9.3