Skip to content

Commit

Permalink
fix(table): fix table setting error
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Dec 5, 2020
1 parent de1f006 commit 59ad824
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- 修复表格 i18n 错误
- 修复菜单图标大小不一致
- 修复顶部菜单宽度计算问题
- 修复表格 tabSetting 问题

## 2.0.0-rc.12 (2020-11-30)

Expand Down
5 changes: 3 additions & 2 deletions src/components/Table/src/components/TableSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@
value: (item.dataIndex || item.title) as string,
});
});
plainOptions.value = ret;
if (!plainOptions.value.length) {
plainOptions.value = ret;
}
const checkList = table
.getColumns()
.map((item) => item.dataIndex || item.title) as string[];
Expand Down
14 changes: 13 additions & 1 deletion src/router/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,23 @@ export const getParentLayout = (name: string) => {
export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
path: '/:path(.*)*',
name: 'ErrorPage',
component: EXCEPTION_COMPONENT,
redirect: '/error/404',
component: LAYOUT,
meta: {
title: 'ErrorPage',
hideBreadcrumb: true,
},
children: [
{
path: '/error/404',
name: 'ErrorPage',
component: EXCEPTION_COMPONENT,
meta: {
title: 'ErrorPage',
hideBreadcrumb: true,
},
},
],
};

export const REDIRECT_NAME = 'Redirect';
Expand Down

0 comments on commit 59ad824

Please sign in to comment.