diff --git a/src/router/index.ts b/src/router/index.ts index a529ca0..0771d30 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -16,7 +16,6 @@ import nestedRouter from './modules/nested' import systemRouter from './modules/system' import chartsRouter from './modules/charts' import chatRouter from './modules/chat' -import componentsRouter from './modules/components' import othersRouter from './modules/other' import externalLink from './modules/externalLink' import formRouter from './modules/from' @@ -118,10 +117,10 @@ export const asyncRoutes = [ externalLink, clipboardTable, systemRouter, - // { - // path: '/:pathMatch(.*)', - // redirect: '/error/404' - // } + { + path: '/:pathMatch(.*)', + redirect: '/error/404' + } ] const router = createRouter({ diff --git a/src/router/modules/components.ts b/src/router/modules/components.ts deleted file mode 100644 index 2c9070a..0000000 --- a/src/router/modules/components.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** When your routing table is too long, you can split it into small modules**/ - -import Layout from "@/layout/index.vue"; - -const componentsRouter = { - path: '/components', - component: Layout, - redirect: 'noRedirect', - name: 'components', - meta: { - title: '基础组件', - icon: 'Histogram', - roles:['other'] - }, - children: [ - { - path: 'button', - component: () => import('@/views/components-demo/button.vue'), - name: 'button', - meta: { title: '按钮', icon: 'MenuIcon' } - }, - - - { - path: 'link', - component: () => import('@/views/components-demo/link.vue'), - name: 'link', - meta: { title: '文字链接', roles:['other'], icon: 'MenuIcon'} - }, - { - path: 'radio', - component: () => import('@/views/components-demo/radio.vue'), - name: 'radio', - meta: { title: '单选框', roles:['other'], icon: 'MenuIcon'} - }, - { - path: 'checkbox', - component: () => import('@/views/components-demo/checkbox.vue'), - name: 'checkbox', - meta: { title: '多选框', roles:['other'], icon: 'MenuIcon'} - }, - { - path: 'input', - component: () => import('@/views/components-demo/input.vue'), - name: 'components-input', - meta: { title: '输入框', roles:['other'], icon: 'MenuIcon'} - }, - { - path: 'components-inputnumber', - component: () => import('@/views/components-demo/inputnumber.vue'), - name: 'components-inputnumber', - meta: { title: '数字输入框', roles:['other'], icon: 'MenuIcon'} - }, - { - path: 'timepicker', - component: () => import('@/views/components-demo/timepicker.vue'), - name: 'timepicker', - meta: { title: '时间选择器', roles:['other'], icon: 'MenuIcon'} - }, - { - path: 'datetimepicker', - component: () => import('@/views/components-demo/datetimepicker.vue'), - name: 'datetimepicker', - meta: { title: '日期时间选择器', roles:['other'], icon: 'MenuIcon'} - }, - { - path: 'scroll', - component: () => import('@/views/components-demo/scroll.vue'), - name: 'scroll', - meta: { title: '无限滚动', icon: 'MenuIcon' } - }, - - - - ] -} - -export default componentsRouter diff --git a/src/utils/index.ts b/src/utils/index.ts index 2f5f33b..670451e 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,6 +1,3 @@ -/** - * Created by PanJiaChen on 16/11/18. - */ /** * Parse the time to string diff --git a/src/utils/validate.ts b/src/utils/validate.ts index 2ab4cc9..e039421 100644 --- a/src/utils/validate.ts +++ b/src/utils/validate.ts @@ -1,6 +1,3 @@ -/** - * Created by PanJiaChen on 16/11/18. - */ /** * @param {string} path diff --git a/src/views/components-demo/button.vue b/src/views/components-demo/button.vue deleted file mode 100644 index 2a4eb3f..0000000 --- a/src/views/components-demo/button.vue +++ /dev/null @@ -1,179 +0,0 @@ - - - diff --git a/src/views/components-demo/checkbox.vue b/src/views/components-demo/checkbox.vue deleted file mode 100644 index 6047a59..0000000 --- a/src/views/components-demo/checkbox.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - diff --git a/src/views/components-demo/datetimepicker.vue b/src/views/components-demo/datetimepicker.vue deleted file mode 100644 index f2dbecc..0000000 --- a/src/views/components-demo/datetimepicker.vue +++ /dev/null @@ -1,152 +0,0 @@ - - - diff --git a/src/views/components-demo/flow-chart.vue b/src/views/components-demo/flow-chart.vue deleted file mode 100644 index 971c0a3..0000000 --- a/src/views/components-demo/flow-chart.vue +++ /dev/null @@ -1,11 +0,0 @@ - - - - - diff --git a/src/views/components-demo/input.vue b/src/views/components-demo/input.vue deleted file mode 100644 index aa51f60..0000000 --- a/src/views/components-demo/input.vue +++ /dev/null @@ -1,105 +0,0 @@ - - - diff --git a/src/views/components-demo/inputnumber.vue b/src/views/components-demo/inputnumber.vue deleted file mode 100644 index ac124e9..0000000 --- a/src/views/components-demo/inputnumber.vue +++ /dev/null @@ -1,110 +0,0 @@ - - - diff --git a/src/views/components-demo/link.vue b/src/views/components-demo/link.vue deleted file mode 100644 index 4005950..0000000 --- a/src/views/components-demo/link.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - diff --git a/src/views/components-demo/radio.vue b/src/views/components-demo/radio.vue deleted file mode 100644 index 154e59c..0000000 --- a/src/views/components-demo/radio.vue +++ /dev/null @@ -1,107 +0,0 @@ - - - diff --git a/src/views/components-demo/scroll.vue b/src/views/components-demo/scroll.vue deleted file mode 100644 index 5406564..0000000 --- a/src/views/components-demo/scroll.vue +++ /dev/null @@ -1,48 +0,0 @@ - - - - - diff --git a/src/views/components-demo/slider.vue b/src/views/components-demo/slider.vue deleted file mode 100644 index 6047a59..0000000 --- a/src/views/components-demo/slider.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - diff --git a/src/views/components-demo/split-pane.vue b/src/views/components-demo/split-pane.vue deleted file mode 100644 index b8799d8..0000000 --- a/src/views/components-demo/split-pane.vue +++ /dev/null @@ -1,67 +0,0 @@ - - - - - diff --git a/src/views/components-demo/timepicker.vue b/src/views/components-demo/timepicker.vue deleted file mode 100644 index 075ad0d..0000000 --- a/src/views/components-demo/timepicker.vue +++ /dev/null @@ -1,105 +0,0 @@ - - - diff --git a/src/views/components-demo/watermark.vue b/src/views/components-demo/watermark.vue deleted file mode 100644 index e69de29..0000000