1:在public文件夹新建config.js

Vue 配置动态可配置地址

 

2在vue.config.js

Vue 配置动态可配置地址

 

 3:在index.html中通过script标签引入

 Vue 配置动态可配置地址

 

 4在项目中使用

import gConf from 'gConf'

相关文章:

  • 2022-01-08
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
  • 2021-10-12
  • 2021-08-23
  • 2021-05-28
  • 2021-12-10
猜你喜欢
  • 2022-01-02
  • 2022-12-23
  • 2021-11-28
  • 2021-11-01
  • 2021-06-17
  • 2021-11-14
相关资源
相似解决方案