..._bmap-draw cdn引入">
赞
踩
1.index.html
<script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
<script src="https://cdn.staticfile.org/vue-router/2.7.0/vue-router.min.js"></script>
<!-- mint-ui -->
<link rel="stylesheet" href="https://cdn.bootcss.com/mint-ui/2.2.13/style.css">
<script src="https://cdn.bootcss.com/mint-ui/2.2.13/index.js"></script>
<!-- 百度地图 -->
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=u70A5pnNrRtRT1XAgwM5jL2YIVj1Gv97"></script>
2.webpack.base.conf.js
module.exports = {
context: path.resolve(__dirname, '../'),
entry: {
app: './src/main.js'
},
//修改的部分
externals: {
'vue': 'Vue',
'vue-router': 'VueRouter',
'mint-ui': 'MINT',
"BMap": "BMap",
},
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。