1:在public文件夹新建config.js 2在vue.config.js 3:在index.html中通过script标签引入 4在项目中使用 import gConf from 'gConf' 相关文章: