vue 3.x的目录结构与vue2.x的目录结果大体一致,但是main.js 文件发生变化
vue3.x中
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
createApp(App).use(store).use(router).mount('#app')
vue2.x中
import Vue from 'vue'
import App from './App'
import router from './router'
new Vue({
el:'#app',
router,
components:{ App },
template:'<App/>'
})