From a84244a1bb87aed242692584db79bd215a08d294 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Thu, 31 Dec 2020 16:38:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E9=87=8D=E5=90=AF=E6=88=96=E5=BC=80=E9=97=A8=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/components/property/machineState/machineState.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/components/property/machineState/machineState.js b/public/components/property/machineState/machineState.js index dc8bf6791..9c9f1f778 100644 --- a/public/components/property/machineState/machineState.js +++ b/public/components/property/machineState/machineState.js @@ -39,7 +39,12 @@ return; } let _data = JSON.parse(json); - vc.toast(_data.msg); + if(_data.code != 0){ + vc.toast(_data.msg); + }else{ + vc.toast('已请求设备'); + } + }, function (errInfo, error) { console.log('请求失败处理');