diff --git a/src/router/modules/components.ts b/src/router/modules/components.ts index b0892e6..2820b7f 100644 --- a/src/router/modules/components.ts +++ b/src/router/modules/components.ts @@ -19,18 +19,8 @@ const componentsRouter = { name: 'button', meta: { title: '按钮', } }, - { - path: 'upload', - component: () => import('@/views/components-demo/upload.vue'), - name: 'upload', - meta: { title: '上传图片', } - }, - { - path: 'form', - component: () => import('@/views/components-demo/form.vue'), - name: 'form', - meta: { title: '表单', roles:['other']} - }, + + { path: 'link', component: () => import('@/views/components-demo/link.vue'), diff --git a/src/router/modules/other.ts b/src/router/modules/other.ts index 0487e0a..7c8ad17 100644 --- a/src/router/modules/other.ts +++ b/src/router/modules/other.ts @@ -42,12 +42,18 @@ const othersRouter = { name: 'grid-sorter', meta: { title: '卡片拖拽' } }, - // { - // path: 'splitpane', - // component: () => import('@/views/other/splitpane.vue'), - // name: 'splitpane', - // meta: { title: '分割模块',} - // }, + { + path: 'form', + component: () => import('@/views/other/form.vue'), + name: 'form', + meta: { title: '表单', roles:['other']} + }, + { + path: 'upload', + component: () => import('@/views/other/upload.vue'), + name: 'upload', + meta: { title: '上传图片', } + }, { path: 'qrcode', component: () => import('@/views/other/qrcode.vue'), diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index e6bac22..ec58cc8 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -9,7 +9,7 @@ const systemRouter = { name: 'system', meta: { title: '系统管理', - icon: 'management' + icon: 'ElementPlus' }, children: [ { diff --git a/src/views/components-demo/form.vue b/src/views/other/form.vue similarity index 100% rename from src/views/components-demo/form.vue rename to src/views/other/form.vue diff --git a/src/views/components-demo/form/u-upload.vue b/src/views/other/form/u-upload.vue similarity index 100% rename from src/views/components-demo/form/u-upload.vue rename to src/views/other/form/u-upload.vue diff --git a/src/views/components-demo/upload.vue b/src/views/other/upload.vue similarity index 100% rename from src/views/components-demo/upload.vue rename to src/views/other/upload.vue