路由
This commit is contained in:
parent
6dd1b2e31e
commit
365e58385d
@ -3,13 +3,13 @@ import Vue from 'vue'
|
||||
import Router from 'vue-router'
|
||||
//2.调用vue-router
|
||||
Vue.use(Router)
|
||||
|
||||
import hello from "./components/HelloWrld"
|
||||
const router=new Router({
|
||||
routes: [
|
||||
// {
|
||||
// path: '/',
|
||||
// component: Hello
|
||||
// }
|
||||
{
|
||||
path: '/',
|
||||
component: hello
|
||||
}
|
||||
]
|
||||
});
|
||||
export default route;
|
||||
export default router;
|
||||
|
Loading…
Reference in New Issue
Block a user