Pārlūkot izejas kodu

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

develop
chenJinxu pirms 11 mēnešiem
vecāks
revīzija
157c7ec2a4
2 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt