فهرست منبع

Update Index.vue

star7th 6 سال پیش
والد
کامیت
a019dad98d
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      web_src/src/components/page/edit/Index.vue

+ 4 - 1
web_src/src/components/page/edit/Index.vue

@@ -266,13 +266,16 @@ export default {
       page_id:'',
       copy_page_id:'',
       attachment_count:'',
-
+      catalogs:[]
     };
   },
   computed: {
 
     //新建/编辑页面时供用户选择的归属目录列表
     belong_to_catalogs:function(){
+        if (!this.catalogs || this.catalogs.length <=0 ) {
+          return [];
+        };
         var Info = this.catalogs.slice(0);
         var cat_array = [] ;
         for (var i = 0; i < Info.length; i++) {