路由模式 路由模式有两种 hash:路径带 # 符号,如 http://localhost/#/login(默认)history:路径不带 # 符号,如http://localhost/login 修改路由配置 index.js export default new Router({ mode:'history' })