mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 16:16:45 +08:00
【hotfix】 在生产环境上,将访问首页时,即访问‘/’时,跳转到404
!注意:这是一个临时处理
This commit is contained in:
@@ -4,7 +4,7 @@ const login = () => import('@/views/app/Login')
|
|||||||
const notFound = () => import('@/views/app/404')
|
const notFound = () => import('@/views/app/404')
|
||||||
const functionList = () => import('@/views/app/FunctionList')
|
const functionList = () => import('@/views/app/FunctionList')
|
||||||
|
|
||||||
export default [
|
let arr = [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
name: 'home',
|
name: 'home',
|
||||||
@@ -43,3 +43,9 @@ export default [
|
|||||||
redirect: '/404'
|
redirect: '/404'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if(process.env.VUE_APP_FLAG == 'prd'){
|
||||||
|
arr.shift()
|
||||||
|
}
|
||||||
|
|
||||||
|
export default arr
|
||||||
Reference in New Issue
Block a user