Files
mes-ui-d2/src/router/routes.js
FairyEver 61b9ad2288 remove filters
Former-commit-id: 98be7f49932856173f0a00f4e5468dc65526e8eb [formerly 98be7f49932856173f0a00f4e5468dc65526e8eb [formerly 98be7f49932856173f0a00f4e5468dc65526e8eb [formerly 98be7f49932856173f0a00f4e5468dc65526e8eb [formerly 26298ed935e1cc1aae9f32c9804f96891580ef2f [formerly e08f36b9a1962a87627f2724461daee3de0328d2]]]]]
Former-commit-id: 80510c9b7017652ed708f70250029b75eddadb7e
Former-commit-id: 79a6a2fd8888c3405676ce27f885cf412ded620c
Former-commit-id: 4b36db262aded966d5057abbf131b78cead537e8 [formerly e8feec2bca77df8842569f27df41948a27d4e02f]
Former-commit-id: ae8bd6b3b7ed83fdcfea77cb1327e9168fddb1c0
Former-commit-id: 9f1fac3bef99b0d85f52f2460b2af7680e80adb6
Former-commit-id: 9a706d4aab904611166baaed08e4f652ed1df4d5
Former-commit-id: f9e14db9d3d4af13b7690ebebba21147abeb5281
Former-commit-id: c8df3e28690ffb971c58c5924f5fdc9350fc5c24
2019-08-19 23:25:25 +08:00

101 lines
2.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import playground from './modules/playground'
import frame from './modules/frame'
import d2Crud from './modules/d2-crud'
import plugins from './modules/plugins'
import charts from './modules/charts'
import components from './modules/components'
import element from './modules/element'
import business from './modules/business'
import layoutHeaderAside from '@/layout/header-aside'
// 由于懒加载页面太多的话会造成webpack热更新太慢所以开发环境不使用懒加载只有生产环境使用懒加载
const _import = require('@/libs/util.import.' + process.env.NODE_ENV)
/**
* 在主框架内显示
*/
const frameIn = [
{
path: '/',
redirect: { name: 'index' },
component: layoutHeaderAside,
children: [
// 首页
{
path: 'index',
name: 'index',
meta: {
auth: true
},
component: _import('system/index')
},
// 系统 前端日志
{
path: 'log',
name: 'log',
meta: {
title: '前端日志',
auth: true
},
component: _import('system/log')
},
// 刷新页面 必须保留
{
path: 'refresh',
name: 'refresh',
hidden: true,
component: _import('system/function/refresh')
},
// 页面重定向 必须保留
{
path: 'redirect/:route*',
name: 'redirect',
hidden: true,
component: _import('system/function/redirect')
}
]
},
playground,
frame,
d2Crud,
plugins,
charts,
components,
element,
business
]
/**
* 在主框架之外显示
*/
const frameOut = [
// 登录
{
path: '/login',
name: 'login',
component: _import('system/login')
}
]
/**
* 错误页面
*/
const errorPage = [
{
path: '*',
name: '404',
component: _import('system/error/404')
}
]
// 导出需要显示菜单的
export const frameInRoutes = frameIn
// 重新组织后导出
export default [
...frameIn,
...frameOut,
...errorPage
]