fix(table): fix table setting error

This commit is contained in:
vben
2020-12-06 00:05:26 +08:00
parent de1f006284
commit 59ad82442b
3 changed files with 17 additions and 3 deletions

View File

@@ -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[];

View File

@@ -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';