Commit 685f543d by 胡悦

修改配置

1 parent 9a3b8801
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 10:54:14 * @Date: 2022-10-10 10:54:14
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-05-22 15:03:39 * @LastEditTime: 2023-06-14 10:12:30
*/ */
const fetchConfig = function (isEnv = true) { const fetchConfig = function (isEnv = true) {
// return window.fetch('https://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json()) // return window.fetch('https://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json())
return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json()) // return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json())
// return window.fetch('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=h5-config').then(res => res.json()) return window.fetch('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=h5-config').then(res => res.json())
} }
// const $mockConfig = await fetchConfig() // const $mockConfig = await fetchConfig()
export default fetchConfig export default fetchConfig
\ No newline at end of file \ No newline at end of file
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
*/ */
const fetchConfig1 = function (isEnv = true) { const fetchConfig1 = function (isEnv = true) {
// return window.fetch('http://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json()) // return window.fetch('http://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json())
return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json()) // return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json())
// return window.fetch('http://192.168.1.68:7001/glsxAdmin/config?moduleUrl=djposter-config').then(res => res.json()) return window.fetch('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=djposter-config').then(res => res.json())
} }
// const $mockConfig = await fetchConfig() // const $mockConfig = await fetchConfig()
export default fetchConfig1 export default fetchConfig1
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!