1.在public文件夹下,新建config/config.js文件
window["edmConfig"] = { loginConfig: { loginSource: "d d d", loginUrl: "a a a", service: "c c c" } }
2.在index.html中引入配置文件
3.在页面使用
const config = window.edmConfig.loginConfig; this.config = config;
1.在public文件夹下,新建config/config.js文件
window["edmConfig"] = { loginConfig: { loginSource: "d d d", loginUrl: "a a a", service: "c c c" } }
2.在index.html中引入配置文件
3.在页面使用
const config = window.edmConfig.loginConfig; this.config = config;