摘要: 1,新建不需要打包的config.js文件 2,在config.js中添加 const Glob = { webApi: 'http://....', // 接口地址 } 3,index页面引入config.js 4,接下来就可以直接调用 5,可配置 会在dist文件夹下有static文件夹里有co 阅读全文
posted @ 2020-04-22 15:25 好撒玛利亚人 阅读(489) 评论(0) 推荐(0) 编辑