From ae5a061121bfee7d19fe72a8be6931015051cd1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Wed, 9 Aug 2023 18:30:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=AE=8A=E8=A1=A8=E5=A4=B4bug?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PC/UI.WinIn.FasterZ.Store/src/mixins/TableMixins.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PC/UI.WinIn.FasterZ.Store/src/mixins/TableMixins.js b/PC/UI.WinIn.FasterZ.Store/src/mixins/TableMixins.js index af113a0..fa85886 100644 --- a/PC/UI.WinIn.FasterZ.Store/src/mixins/TableMixins.js +++ b/PC/UI.WinIn.FasterZ.Store/src/mixins/TableMixins.js @@ -171,7 +171,7 @@ export const tableMixins = { } }) } - if(list && list.length > 0){ + if(list){ _Columns_Table = _Columns_Table.concat(this.specialAddColumns(list,titleName)) } return _Columns_Table @@ -249,7 +249,8 @@ export const tableMixins = { getPageList(this.PageListParams, this.URLOption_base) .then(res=>{ // 表头处理 - let _Columns = this.initApiColumnsForDto(res.items[0],this.$route.name) + let _list = res.items && res.items.length > 0 ? res.items[0] : null + let _Columns = this.initApiColumnsForDto(_list,this.$route.name) this.apiColumns_Table = this.initTableColumns(_Columns) this.apiColumns_DesTions = _Columns // 页面数据处理