I don"t know what went wrong. The route will not jump after clicking
but the path jumps from http://localhost:8080/-sharp/
to http://localhost:8080/-sharp/userinfo
the content of the display is blank, and there is something
written in it.router / index.js
import Vue from "vue"
import Router from "vue-router"
import index from "@/components/index"
import userinfo from "@/components/home/userinfo"
Vue.use(Router)
export default new Router({
routes: [
{
path: "/",
name: "index",
component: index,
children: [
{
path: "/userinfo",
name: "userinfo",
component: userinfo
}
]
}
]
})