소스 검색

修复单品tab刷新bug

xiaohaizhao 1 년 전
부모
커밋
bf1c9e498a
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      pages/index/cloud/product.vue

+ 3 - 1
pages/index/cloud/product.vue

@@ -118,7 +118,9 @@ export default {
             this.tabs3 = [];
             this.tabs3Active = 0;
 
-            return this.getList(true);
+            return new Promise((resolve, reject) => {
+                this.getList(true).then(res => resolve())
+            });
         },
         changeClass2(index) {
             let item = this.tabs2[index];