修改路由前缀名key值

This commit is contained in:
不做码农 2021-10-08 21:22:35 +08:00
parent eb2f7834cf
commit 43a00c78be
3 changed files with 5 additions and 6 deletions

View File

@ -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 = ''

View File

@ -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 = ''

View File

@ -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
}) })