// 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');
在网上说是vue 版本发生变化要修改,但是我不知道在哪里修改。 刚刚学
woshiajuana
相关分类