Commit 59ad82442bf213bac547940086ff4e14d0cd342a
1 parent
de1f0062
fix(table): fix table setting error
Showing
3 changed files
with
17 additions
and
3 deletions
CHANGELOG.zh_CN.md
src/components/Table/src/components/TableSetting.vue
... | ... | @@ -158,8 +158,9 @@ |
158 | 158 | value: (item.dataIndex || item.title) as string, |
159 | 159 | }); |
160 | 160 | }); |
161 | - | |
162 | - plainOptions.value = ret; | |
161 | + if (!plainOptions.value.length) { | |
162 | + plainOptions.value = ret; | |
163 | + } | |
163 | 164 | const checkList = table |
164 | 165 | .getColumns() |
165 | 166 | .map((item) => item.dataIndex || item.title) as string[]; | ... | ... |
src/router/constant.ts
... | ... | @@ -25,11 +25,23 @@ export const getParentLayout = (name: string) => { |
25 | 25 | export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = { |
26 | 26 | path: '/:path(.*)*', |
27 | 27 | name: 'ErrorPage', |
28 | - component: EXCEPTION_COMPONENT, | |
28 | + redirect: '/error/404', | |
29 | + component: LAYOUT, | |
29 | 30 | meta: { |
30 | 31 | title: 'ErrorPage', |
31 | 32 | hideBreadcrumb: true, |
32 | 33 | }, |
34 | + children: [ | |
35 | + { | |
36 | + path: '/error/404', | |
37 | + name: 'ErrorPage', | |
38 | + component: EXCEPTION_COMPONENT, | |
39 | + meta: { | |
40 | + title: 'ErrorPage', | |
41 | + hideBreadcrumb: true, | |
42 | + }, | |
43 | + }, | |
44 | + ], | |
33 | 45 | }; |
34 | 46 | |
35 | 47 | export const REDIRECT_NAME = 'Redirect'; | ... | ... |