Sfoglia il codice sorgente

fix:myeta切换分类问题

Karsa 10 mesi fa
parent
commit
732b77f5dd
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/views/mychart_manage/index.vue

+ 1 - 1
src/views/mychart_manage/index.vue

@@ -623,7 +623,7 @@ export default {
     /* 切换分类 */
     chooseClassify({MyChartClassifyId,fromPublic,AdminId}) {
       if(fromPublic!==1){
-        this.$refs.catalogTree.setCurrentKey(null)
+        this.$refs.catalogTree&&this.$refs.catalogTree.setCurrentKey(null)
       }
       this.select_classify = MyChartClassifyId;
       this.ispublic = fromPublic;