Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
xqz
/
dianDemo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
556eb3e4
authored
4 years ago
by
sunnie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
router默认hash
1 parent
842a3eb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/router/index.js
src/router/index.js
View file @
556eb3e
...
...
@@ -13,8 +13,8 @@ Vue.use(Router)
const
createRouter
=
()
=>
new
Router
({
mode
:
'history'
,
base
:
process
.
env
.
BASE_URL
,
// mode: 'history', // 如果你是 history模式 需要配置vue.config.js publicPath
//
base: process.env.BASE_URL,
scrollBehavior
:
()
=>
({
y
:
0
}),
routes
:
constantRouterMap
})
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment