在工作中发现,配置的全局文件在浏览器被暴露了,原因是在index.html里面直接引入的js文件,解决方法是在main.js文件里面
import **** from '.******
Vue.prototype.*****=*****;
Vue.prototype.****=*****;
import GlobalConfig from './assets/lib/globalConfig'
在工作中发现,配置的全局文件在浏览器被暴露了,原因是在index.html里面直接引入的js文件,解决方法是在main.js文件里面
import **** from '.******
Vue.prototype.*****=*****;
Vue.prototype.****=*****;
import GlobalConfig from './assets/lib/globalConfig'
相关文章: