Commit 54e23abb authored by 水落(YangLei)'s avatar 水落(YangLei)

feat: 去掉无用代码和配置

parent e7df7eba
<template>
<router-view />
</template>
<script>
import { mapState } from 'vuex';
export default {
name: 'BlankTemplateView',
computed: {
...mapState('settingModule', ['multiPage']),
},
};
</script>
import BlankTemplateView from './BlankTemplateView';
import PageTemplateView from './PageTemplateView'; import PageTemplateView from './PageTemplateView';
import TabsTemplateView from './TabsTemplateView'; import TabsTemplateView from './TabsTemplateView';
export { BlankTemplateView, PageTemplateView, TabsTemplateView } export { PageTemplateView, TabsTemplateView };
// 视图组件 // 视图组件
const view = { const view = {
tabs: () => import('@/pages/frame/view/template/TabsTemplateView'), tabs: () => import('@/pages/frame/view/template/TabsTemplateView'),
blank: () => import('@/pages/frame/view/template/BlankTemplateView'),
page: () => import('@/pages/frame/view/template/PageTemplateView'), page: () => import('@/pages/frame/view/template/PageTemplateView'),
}; };
...@@ -36,7 +35,6 @@ const routerMap = { ...@@ -36,7 +35,6 @@ const routerMap = {
}, },
dashboard: { dashboard: {
name: 'Dashboard', name: 'Dashboard',
component: view.blank,
}, },
workbench: { workbench: {
name: '工作台', name: '工作台',
......
import { BlankTemplateView, PageTemplateView, TabsTemplateView } from '@/pages/frame/view/template'; import { PageTemplateView, TabsTemplateView } from '@/pages/frame/view/template';
// 路由配置 // 路由配置
const options = { const options = {
...@@ -42,7 +42,6 @@ const options = { ...@@ -42,7 +42,6 @@ const options = {
meta: { meta: {
icon: 'dashboard', icon: 'dashboard',
}, },
component: BlankTemplateView,
children: [ children: [
{ {
path: 'workbench', path: 'workbench',
...@@ -62,7 +61,7 @@ const options = { ...@@ -62,7 +61,7 @@ const options = {
], ],
}, },
{ {
path: 'system_management', path: 'system',
name: '系统管理', name: '系统管理',
meta: { meta: {
icon: 'setting', icon: 'setting',
...@@ -73,29 +72,28 @@ const options = { ...@@ -73,29 +72,28 @@ const options = {
component: PageTemplateView, component: PageTemplateView,
children: [ children: [
{ {
path: 'menu_management', path: 'menu',
name: '菜单管理', name: '菜单管理',
component: () => import('@/pages/system/view/menu'), component: () => import('@/pages/system/view/menu'),
}, },
{ {
path: 'organization_management', path: 'organization',
name: '组织管理', name: '组织管理',
component: BlankTemplateView,
children: [ children: [
{ {
path: 'job_management', path: 'job',
name: '岗位管理', name: '岗位管理',
component: () => component: () =>
import('@/pages/system/view/organization/jobsmanagement/Jobs.vue'), import('@/pages/system/view/organization/jobsmanagement/Jobs.vue'),
}, },
{ {
path: 'user_management', path: 'user',
name: '用户管理', name: '用户管理',
component: () => component: () =>
import('@/pages/system/view/organization/usermanagement/User.vue'), import('@/pages/system/view/organization/usermanagement/User.vue'),
}, },
{ {
path: 'org_management', path: 'org',
name: '机构管理', name: '机构管理',
component: () => component: () =>
import('@/pages/system/view/organization/orgmanagement/Org.vue'), import('@/pages/system/view/organization/orgmanagement/Org.vue'),
...@@ -103,23 +101,22 @@ const options = { ...@@ -103,23 +101,22 @@ const options = {
], ],
}, },
{ {
path: 'role_management', path: 'role',
name: '角色管理', name: '角色管理',
component: () => import('@/pages/system/view/role'), component: () => import('@/pages/system/view/role'),
}, },
{ {
path: 'parameter_management', path: 'parameter',
name: '参数管理', name: '参数管理',
component: BlankTemplateView,
children: [ children: [
{ {
path: 'business_management', path: 'business',
name: '业务参数', name: '业务参数',
component: () => component: () =>
import('@/pages/system/view/parameter/business/index.vue'), import('@/pages/system/view/parameter/business/index.vue'),
}, },
{ {
path: 'operation_management', path: 'operation',
name: '运维参数', name: '运维参数',
component: () => component: () =>
import('@/pages/system/view/parameter/operation/index.vue'), import('@/pages/system/view/parameter/operation/index.vue'),
...@@ -127,31 +124,30 @@ const options = { ...@@ -127,31 +124,30 @@ const options = {
], ],
}, },
{ {
path: 'log_management', path: 'log',
name: '日志管理', name: '日志管理',
component: BlankTemplateView,
children: [ children: [
{ {
path: 'login_log', path: 'login',
name: '登录日志', name: '登录日志',
component: () => import('@/pages/system/view/log/login_log/index.vue'), component: () => import('@/pages/system/view/log/login_log'),
}, },
{ {
path: 'operation_log', path: 'operation',
name: '操作日志', name: '操作日志',
component: () => import('@/pages/system/view/log/operation/index.vue'), component: () => import('@/pages/system/view/log/operation/index.vue'),
}, },
], ],
}, },
{ {
path: 'task_management', path: 'task',
name: '任务管理', name: '任务管理',
component: () => import('@/pages/system/view/task/index.vue'), component: () => import('@/pages/system/view/task/index.vue'),
}, },
], ],
}, },
{ {
path: 'user_center', path: 'user',
name: '个人中心', name: '个人中心',
meta: { icon: 'user' }, meta: { icon: 'user' },
component: () => import('@/pages/user/index.vue'), component: () => import('@/pages/user/index.vue'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment