소스 검색

视频赛选优化

codeMan 1 년 전
부모
커밋
456634069a
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  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: ''