diff --git a/components-diy/diy-category-item.vue b/components-diy/diy-category-item.vue index 0e45101..a026ff1 100644 --- a/components-diy/diy-category-item.vue +++ b/components-diy/diy-category-item.vue @@ -180,7 +180,7 @@ - + {{ $lang('components-diy.diy-category-item.all') }} + v-for="(one, oneIndex) in (value.template == 4 ? currentOneCategory.child_list : category.child_list)" :key="oneIndex"> {{ one.category_name }} @@ -201,7 +201,7 @@ :class="{ 'screen-category-4': value.template == 4 }"> {{ $lang('components-diy.diy-category-item.all') }} {{ one.category_name }} @@ -745,8 +745,8 @@ export default { data: { page: this.pageIndex, page_size: this.pageSize, - category_id: this.categoryId != -1 ? this.category.child_list[this.categoryId] - .category_id : this.category.category_id, + category_id: this.categoryId != -1 ? (this.value.template == 4 && this.currentOneCategory && this.currentOneCategory.child_list ? this.currentOneCategory.child_list[this.categoryId].category_id : this.category.child_list[this.categoryId].category_id) + : this.category.category_id, order: order, sort: sort },