import HelloWorld from". / components/HelloWorld"
import header from". / components/partial/header"
import Vue from "vue"
import Router from" vue-router"
Vue.use (Router)
export default new Router ({
routes: [
{
path: "/", component: header,
children: [
{ path: "home", component: HelloWorld }
]
}
]
})
prompts for syntax errors, and if object properties are not all on the same line, they must be on a new line.
srcrouter.js:10:18 http://eslint.org/docs/rules/. Object properties must go on a new line if they aren"t all on the same line
srcrouter.js:10:18
path: "/", component: authedWrap,
topic description
sources of topics and their own ideas
related codes
/ / Please paste the code text below (do not replace the code with pictures)