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 TabsTemplateView from './TabsTemplateView';
export { BlankTemplateView, PageTemplateView, TabsTemplateView }
export { PageTemplateView, TabsTemplateView };
// 视图组件
const view = {
tabs: () => import('@/pages/frame/view/template/TabsTemplateView'),
blank: () => import('@/pages/frame/view/template/BlankTemplateView'),
page: () => import('@/pages/frame/view/template/PageTemplateView'),
};
......@@ -36,7 +35,6 @@ const routerMap = {
},
dashboard: {
name: 'Dashboard',
component: view.blank,
},
workbench: {
name: '工作台',
......
import { BlankTemplateView, PageTemplateView, TabsTemplateView } from '@/pages/frame/view/template';
import { PageTemplateView, TabsTemplateView } from '@/pages/frame/view/template';
// 路由配置
const options = {
......@@ -42,7 +42,6 @@ const options = {
meta: {
icon: 'dashboard',
},
component: BlankTemplateView,
children: [
{
path: 'workbench',
......@@ -62,7 +61,7 @@ const options = {
],
},
{
path: 'system_management',
path: 'system',
name: '系统管理',
meta: {
icon: 'setting',
......@@ -73,29 +72,28 @@ const options = {
component: PageTemplateView,
children: [
{
path: 'menu_management',
path: 'menu',
name: '菜单管理',
component: () => import('@/pages/system/view/menu'),
},
{
path: 'organization_management',
path: 'organization',
name: '组织管理',
component: BlankTemplateView,
children: [
{
path: 'job_management',
path: 'job',
name: '岗位管理',
component: () =>
import('@/pages/system/view/organization/jobsmanagement/Jobs.vue'),
},
{
path: 'user_management',
path: 'user',
name: '用户管理',
component: () =>
import('@/pages/system/view/organization/usermanagement/User.vue'),
},
{
path: 'org_management',
path: 'org',
name: '机构管理',
component: () =>
import('@/pages/system/view/organization/orgmanagement/Org.vue'),
......@@ -103,23 +101,22 @@ const options = {
],
},
{
path: 'role_management',
path: 'role',
name: '角色管理',
component: () => import('@/pages/system/view/role'),
},
{
path: 'parameter_management',
path: 'parameter',
name: '参数管理',
component: BlankTemplateView,
children: [
{
path: 'business_management',
path: 'business',
name: '业务参数',
component: () =>
import('@/pages/system/view/parameter/business/index.vue'),
},
{
path: 'operation_management',
path: 'operation',
name: '运维参数',
component: () =>
import('@/pages/system/view/parameter/operation/index.vue'),
......@@ -127,31 +124,30 @@ const options = {
],
},
{
path: 'log_management',
path: 'log',
name: '日志管理',
component: BlankTemplateView,
children: [
{
path: 'login_log',
path: 'login',
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: '操作日志',
component: () => import('@/pages/system/view/log/operation/index.vue'),
},
],
},
{
path: 'task_management',
path: 'task',
name: '任务管理',
component: () => import('@/pages/system/view/task/index.vue'),
},
],
},
{
path: 'user_center',
path: 'user',
name: '个人中心',
meta: { icon: 'user' },
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