From 157c7ec2a425dfe5d9f961300624e8cf5b19aec7 Mon Sep 17 00:00:00 2001 From: chenJinxu <2183691628@qq.com> Date: Wed, 13 Dec 2023 18:26:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20promise=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E8=BF=94=E5=9B=9Etrue=E6=89=8D=E7=AE=97=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/models.js | 2 +- src/views/gps-card-frontend/device-setting/index.vue | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/config/models.js b/src/config/models.js index d101486..503f39e 100644 --- a/src/config/models.js +++ b/src/config/models.js @@ -5,7 +5,7 @@ * @FilePath: \TelpoH5FrontendWeb\src\config\models.js * @description: */ -export const VERSION_MODEL = '1.0.109F'; //版本号 +export const VERSION_MODEL = '1.0.110F'; //版本号 export const IMAGE_URL = { production: 'http://zfb.ssjlai.com/web/', test: 'http://zfb.ssjlai.com/web/', diff --git a/src/views/gps-card-frontend/device-setting/index.vue b/src/views/gps-card-frontend/device-setting/index.vue index 90682a1..4cb819f 100644 --- a/src/views/gps-card-frontend/device-setting/index.vue +++ b/src/views/gps-card-frontend/device-setting/index.vue @@ -104,7 +104,10 @@ export default { const promise = Promise.all(allPromise); try { const result = await promise; - if(result) { + const isLoadAllSuccess = result.every(item => { + return item; + }); + if(isLoadAllSuccess) { this.$toast.success({ message: '数据加载完成', duration: 2000