Skip to content

Commit

Permalink
[feature]{history}: router改为history模式
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Nov 29, 2019
1 parent c3f9c86 commit 7d9fba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default new Router({
y: 0,
}),
routes: constantRouterMap,
mode: 'history',
})

export const asyncRouterMap = [
Expand Down
2 changes: 1 addition & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
// 指定子路径。比如,如果你的应用部署在
// https://www.foobar.com/my-app/
// 那么将这个值改为 `/my-app/`
publicPath: './',
publicPath: '/',

// 将构建好的文件输出到哪里
outputDir: 'dist',
Expand Down

0 comments on commit 7d9fba9

Please sign in to comment.