Sfoglia il codice sorgente

视频赛选优化

codeMan 1 anno fa
parent
commit
456634069a
1 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 5 3
      pages/index/index/videos.vue

+ 5 - 3
pages/index/index/videos.vue

@@ -57,9 +57,10 @@ export default {
             this.getList(true)
         },
         init(callBack) {
-            callBack()
-            this.getList(true)
-            this.updatePage = false;
+            Promise.all([this.getList(true)]).then(res => {
+                callBack()
+                this.updatePage = false;
+            })
         },
         async openFiltrate() {
             if (this.filtrateList.length == 0) {
@@ -126,6 +127,7 @@ export default {
                 parentid: e.下级分类3.sat_sharematerial_classid
             })
             if (e.分类1 == '') {
+                crumbs.splice(1,crumbs.length - 1)
                 crumbs.push({
                     classname:'全部',
                     parentid: ''