diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index d93ff714b2fa8a4727dd2d750ab236a62c0a774b..aaca09aa3d75dc82c002962ee75025fda20231e0 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -29,6 +29,7 @@ - 修复表格 i18n 错误 - 修复菜单图标大小不一致 - 修复顶部菜单宽度计算问题 +- 修复表格 tabSetting 问题 ## 2.0.0-rc.12 (2020-11-30) diff --git a/src/components/Table/src/components/TableSetting.vue b/src/components/Table/src/components/TableSetting.vue index 03c443a99bde48ce73ca212920904474b96b86c3..3fd5f8fcc08ae3c651bfa8c9c402749620c67119 100644 --- a/src/components/Table/src/components/TableSetting.vue +++ b/src/components/Table/src/components/TableSetting.vue @@ -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[]; diff --git a/src/router/constant.ts b/src/router/constant.ts index a0025c7ab07eeb28301d98c5a4c23d30ed1b1a87..b22260a9e7008c9766c0f77e2561b2c53ded74e1 100644 --- a/src/router/constant.ts +++ b/src/router/constant.ts @@ -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';