|
|
@@ -63,11 +63,15 @@ export default {
|
|
|
message: '加载中...',
|
|
|
forbidClick: true
|
|
|
});
|
|
|
- this.getProduct().then(res => {
|
|
|
- this.banners = res;
|
|
|
- });
|
|
|
- this.getProduct('LIST').then(res => {
|
|
|
- this.products = res;
|
|
|
+ Promise.all([
|
|
|
+ this.getProduct().then(res => {
|
|
|
+ this.banners = res;
|
|
|
+ }),
|
|
|
+ this.getProduct('LIST').then(res => {
|
|
|
+ this.products = res;
|
|
|
+ })
|
|
|
+ ]).then(() => {
|
|
|
+ this.$toast.clear();
|
|
|
});
|
|
|
},
|
|
|
getProduct(type = 'BANNER') {
|