Ver código fonte

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

develop
chenJinxu 11 meses atrás
pai
commit
157c7ec2a4
2 arquivos alterados com 5 adições e 2 exclusões
  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 Ver arquivo

@@ -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/',


+ 4
- 1
src/views/gps-card-frontend/device-setting/index.vue Ver arquivo

@@ -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


Carregando…
Cancelar
Salvar