//?The?Vue?build?version?to?load?with?the?`import`?command
//?(runtime-only?or?standalone)?has?been?set?in?webpack.base.conf?with?an?alias.
import?Vue?from?'vue';
import?VueRouter?from?'vue-router';
import?App?from?'./App';
import?goods?from?'./components/goods/goods';
Vue.use(VueRouter);
/*?eslint-disable?no-new?*/
Vue.extend(App);
let?router?=?new?VueRouter({
mode:?'history',
routes:?[
{
path:?'/goods',
component:?goods
}
]
});
new?Vue({
router,
render:?h?=>?h(App)?//?render?function
}).$mount('#app');在網(wǎng)上說是vue 版本發(fā)生變化要修改,但是我不知道在哪里修改。 ?剛剛學(xué)
vue 報(bào)錯(cuò) 那位朋友 朋友幫我看看。
小學(xué)時(shí)光丶風(fēng)景美
2017-06-11 13:20:38