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 }
]
}]})提示语法错误, 如果对象属性并非都位于同一行上,则它们必须位于新行上。✘ http://eslint.org/docs/rules/... Object properties must go on a new line if they aren't all on the same linesrcrouter.js:10:18path: '/', component: authedWrap,
添加回答
举报
0/150
提交
取消