Browse Source

优化 promise全部返回true才算成功

develop
chenJinxu 11 months ago
parent
commit
157c7ec2a4
2 changed files with 5 additions and 2 deletions
  1. +1
    -1
      src/config/models.js
  2. +4
    -1
      src/views/gps-card-frontend/device-setting/index.vue

+ 1
- 1
src/config/models.js View File

@@ -5,7 +5,7 @@
* @FilePath: \TelpoH5FrontendWeb\src\config\models.js * @FilePath: \TelpoH5FrontendWeb\src\config\models.js
* @description: * @description:
*/ */
export const VERSION_MODEL = '1.0.109F'; //版本号
export const VERSION_MODEL = '1.0.110F'; //版本号
export const IMAGE_URL = { export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/', production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/', test: 'http://zfb.ssjlai.com/web/',


+ 4
- 1
src/views/gps-card-frontend/device-setting/index.vue View File

@@ -104,7 +104,10 @@ export default {
const promise = Promise.all(allPromise); const promise = Promise.all(allPromise);
try { try {
const result = await promise; const result = await promise;
if(result) {
const isLoadAllSuccess = result.every(item => {
return item;
});
if(isLoadAllSuccess) {
this.$toast.success({ this.$toast.success({
message: '数据加载完成', message: '数据加载完成',
duration: 2000 duration: 2000


Loading…
Cancel
Save