修正
- 引入element 之后
app.js修改为
window.Vue = require('vue');
import Hello from './components/hello.vue'; // 引入Hello 组件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
const app = new Vue({
el: '#app',
render: h => h(Hello)
});