Commit 31dae2ed authored by 程卓's avatar 程卓

增加默认的路由文件

parent ffe608b8
{
"Layout": [
]
}
\ No newline at end of file
...@@ -6,6 +6,7 @@ import yangpu from '@/router/yangpuRoutes.json' ...@@ -6,6 +6,7 @@ import yangpu from '@/router/yangpuRoutes.json'
import ajax from '@/server/ajax' import ajax from '@/server/ajax'
import api from '@/server/api' import api from '@/server/api'
import documents from '@/router/documentsRoutes.json' import documents from '@/router/documentsRoutes.json'
import defaultRoutes from '@/router/defaultRoutes.json'
import Store from '@/store/index' import Store from '@/store/index'
async function GetRoutes(router) { async function GetRoutes(router) {
...@@ -16,10 +17,10 @@ async function GetRoutes(router) { ...@@ -16,10 +17,10 @@ async function GetRoutes(router) {
// case env.indexOf('pudong') > -1: // 根据当前打包的项目调用该项目对应的路由 // case env.indexOf('pudong') > -1: // 根据当前打包的项目调用该项目对应的路由
case 'sit': case 'sit':
MicRouters = documents MicRouters = defaultRoutes
break break
case 'production': case 'production':
MicRouters = documents MicRouters = defaultRoutes
break break
case 'pudong-sit': case 'pudong-sit':
...@@ -77,18 +78,6 @@ async function GetRoutes(router) { ...@@ -77,18 +78,6 @@ async function GetRoutes(router) {
}) })
}() }()
// 徐汇区的子项目要看当前用户是否是超管,否则不展示 处置单和投诉
// console.log(Store.state.userInfos)
// if (env.indexOf('xuhui') != -1 ) {
// let newArr= []
// MicRouters.Layout.forEach((item) => {
// if (item.name != 'tousu' && item.name != 'Disposal' ) {
// newArr.push(item)
// }
// })
// MicRouters.Layout = newArr
// }
const micSystemRoutersConfigs = Object.assign({}, MicRouters) const micSystemRoutersConfigs = Object.assign({}, MicRouters)
const { routes } = router.options const { routes } = router.options
const parent = routes.find(item => item.name === 'Layout') const parent = routes.find(item => item.name === 'Layout')
......
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