I use vue-cli
created an empty Hello World project,
add a HelloWorld2.vue
in components
which basically copy from HelloWorld.vue
.
then add the new one to the router/index.js
like this:
export default new Router({
routes: [
{
path: '/',
component: HelloWorld
},
{
path: '/HelloWorld2',
component: HelloWorld2
}
]
})
Question:
When I trying to access HelloWorld2
1. localhost/#/HelloWorld2 //right
2. localhost/HelloWorld2 //wrong, redirect to HelloWorld
What's meaning of /#/
?