export {router} //按需导出 import {router} from './router' //按需导入路由模块 export default //全局导出store模块 store import store from './store/store' //全局导入Vuex模块
一:按需导入和按需导出
二:全局导出Vuex模块,和全局导入Vuex模块