From f99e2eaf9c8da76924176161497d6b354bf400fd Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 26 Apr 2021 10:30:52 +0800
Subject: [PATCH] logo调整

---
 src/page/index/logo.vue |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/page/index/logo.vue b/src/page/index/logo.vue
index 489dc5f..09f2bf9 100644
--- a/src/page/index/logo.vue
+++ b/src/page/index/logo.vue
@@ -381,20 +381,17 @@
           id: jid,
         },
       }).then(function (response) {
-        console.log(response, 123)
         var userId = JSON.parse(
           window.localStorage.getItem("物联网安保云服务平台-userInfo")
         ).content.user_id;
 
-        if (response.data.data.length > 0) {
-          // that.deviceId = response.data.data[0].id;
-          that.form = response.data.data[0];
-
+        if (response.data.data.records.length > 0) {
+          that.form = response.data.data.records[0];
           if (
-            response.data.data[0].waringType == "紧急求救" &&
-            response.data.data[0].alarmId == userId
+            response.data.data.records[0].waringType == "紧急求救" &&
+            response.data.data.records[0].alarmId == userId
           ) {
-            response.data.data[0].waringType = "一键求助";
+            response.data.data.records[0].waringType = "一键求助";
 
             that.peopleList = [
               { label: that.form.oneContacts, value: that.form.onePhone },

--
Gitblit v1.9.3