From 106f2c8d0ea8dd37eeadee8f2ba77da36579ffef Mon Sep 17 00:00:00 2001 From: xuechunyuan <17853500702@163.com> Date: Tue, 14 Feb 2023 13:36:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=BB=98=E8=AE=A4=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E6=94=BE=E5=8F=B7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/views/index.js | 201 ++++++++++++++++---------------- src/views/articlelist/index.vue | 2 +- 2 files changed, 103 insertions(+), 100 deletions(-) diff --git a/src/router/views/index.js b/src/router/views/index.js index 383242e..3d02dfd 100644 --- a/src/router/views/index.js +++ b/src/router/views/index.js @@ -1,106 +1,109 @@ import Layout from '@/page/index/' -export default [{ - path: '/wel', - component: Layout, - redirect: '/wel/index', - children: [{ - path: 'index', - name: '首页', - meta: { - i18n: 'dashboard' +export default [ + { + path: '/wel', + component: Layout, + redirect: '/wel/index', + children: [{ + path: 'index', + name: '首页', + meta: { + i18n: 'dashboard' + }, + component: () => + import( /* webpackChunkName: "views" */ '@/views/booklist/index') + // import( /* webpackChunkName: "views" */ '@/views/wel/index') }, - component: () => - import( /* webpackChunkName: "views" */ '@/views/wel/index') + { + path: 'dashboard', + name: '控制台', + meta: { + i18n: 'dashboard', + menu: false, + }, + component: () => + import( /* webpackChunkName: "views" */ '@/views/wel/dashboard') + }] }, { - path: 'dashboard', - name: '控制台', - meta: { - i18n: 'dashboard', - menu: false, - }, - component: () => - import( /* webpackChunkName: "views" */ '@/views/wel/dashboard') - }] -}, { - path: '/test', - component: Layout, - redirect: '/test/index', - children: [{ - path: 'index', - name: '测试页', - meta: { - i18n: 'test' - }, - component: () => - import( /* webpackChunkName: "views" */ '@/views/util/test') - }] -}, { - path: '/dict-horizontal', - component: Layout, - redirect: '/dict-horizontal/index', - children: [{ - path: 'index', - name: '字典管理', - meta: { - i18n: 'dict' - }, - component: () => - import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal') - }] -}, { - path: '/dict-vertical', - component: Layout, - redirect: '/dict-vertical/index', - children: [{ - path: 'index', - name: '字典管理', - meta: { - i18n: 'dict' - }, - component: () => - import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical') - }] -}, { - path: '/info', - component: Layout, - redirect: '/info/index', - children: [{ - path: 'index', - name: '个人信息', - meta: { - i18n: 'info' - }, - component: () => - import( /* webpackChunkName: "views" */ '@/views/system/userinfo') - }] -}, { - path: '/work/process/leave', - component: Layout, - redirect: '/work/process/leave/form', - children: [{ - path: 'form/:processDefinitionId', - name: '请假流程', - meta: { - i18n: 'work' - }, - component: () => - import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form') + path: '/test', + component: Layout, + redirect: '/test/index', + children: [{ + path: 'index', + name: '测试页', + meta: { + i18n: 'test' + }, + component: () => + import( /* webpackChunkName: "views" */ '@/views/util/test') + }] }, { - path: 'handle/:taskId/:processInstanceId/:businessId', - name: '处理请假流程', - meta: { - i18n: 'work' - }, - component: () => - import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle') + path: '/dict-horizontal', + component: Layout, + redirect: '/dict-horizontal/index', + children: [{ + path: 'index', + name: '字典管理', + meta: { + i18n: 'dict' + }, + component: () => + import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal') + }] }, { - path: 'detail/:processInstanceId/:businessId', - name: '请假流程详情', - meta: { - i18n: 'work' - }, - component: () => - import( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail') + path: '/dict-vertical', + component: Layout, + redirect: '/dict-vertical/index', + children: [{ + path: 'index', + name: '字典管理', + meta: { + i18n: 'dict' + }, + component: () => + import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical') + }] + }, { + path: '/info', + component: Layout, + redirect: '/info/index', + children: [{ + path: 'index', + name: '个人信息', + meta: { + i18n: 'info' + }, + component: () => + import( /* webpackChunkName: "views" */ '@/views/system/userinfo') + }] + }, { + path: '/work/process/leave', + component: Layout, + redirect: '/work/process/leave/form', + children: [{ + path: 'form/:processDefinitionId', + name: '请假流程', + meta: { + i18n: 'work' + }, + component: () => + import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form') + }, { + path: 'handle/:taskId/:processInstanceId/:businessId', + name: '处理请假流程', + meta: { + i18n: 'work' + }, + component: () => + import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle') + }, { + path: 'detail/:processInstanceId/:businessId', + name: '请假流程详情', + meta: { + i18n: 'work' + }, + component: () => + import( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail') + }] }] -}] diff --git a/src/views/articlelist/index.vue b/src/views/articlelist/index.vue index b3081df..be8fafa 100644 --- a/src/views/articlelist/index.vue +++ b/src/views/articlelist/index.vue @@ -13,7 +13,7 @@