vue项目按需导入模块,需安装babel插件
babel-plugin-syntax-dynamic-import
less-loader
element
axios
router
vuex
配置跨域
config/index.js
proxyTable: {
‘/api’:{
changeOrigin:true,
target:‘http://localhost:8989’
// pathRewrite:{
// ‘^/api’:‘http://localhost:8989’
// }
}
},