修改路由前缀名key值
This commit is contained in:
parent
eb2f7834cf
commit
43a00c78be
@ -1,11 +1,9 @@
|
|||||||
|
# 关于此文件说明 必须以VUE_APP开头
|
||||||
# 开发环境配置
|
# 开发环境配置
|
||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# ZR管理系统/开发环境
|
# ZR管理系统/开发环境
|
||||||
VUE_APP_BASE_API = 'http://localhost:8888/'
|
VUE_APP_BASE_API = 'http://localhost:8888/'
|
||||||
|
|
||||||
# 路由懒加载
|
|
||||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
|
||||||
|
|
||||||
# 路由前缀
|
# 路由前缀
|
||||||
VUE_ROUTER_PREFIX = '/'
|
VUE_APP_ROUTER_PREFIX = ''
|
||||||
|
|||||||
@ -5,4 +5,4 @@ ENV = 'production'
|
|||||||
VUE_APP_BASE_API = '/prod-api'
|
VUE_APP_BASE_API = '/prod-api'
|
||||||
|
|
||||||
# 路由前缀
|
# 路由前缀
|
||||||
VUE_ROUTER_PREFIX = '/'
|
VUE_APP_ROUTER_PREFIX = ''
|
||||||
|
|||||||
@ -110,6 +110,7 @@ export const constantRoutes = [
|
|||||||
|
|
||||||
export default new Router({
|
export default new Router({
|
||||||
mode: 'history', // 去掉url中的#
|
mode: 'history', // 去掉url中的#
|
||||||
scrollBehavior: () => ({ y: 0 }),
|
// base: '',
|
||||||
|
// scrollBehavior: () => ({ y: 0 }),
|
||||||
routes: constantRoutes
|
routes: constantRoutes
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user