Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsx-posters
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 685f543d
authored
Jun 14, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改配置
1 parent
9a3b8801
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
src/utils/config.ts
src/utils/config1.ts
src/utils/config.ts
View file @
685f543
...
@@ -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-0
5-22 15:03:39
* @LastEditTime: 2023-0
6-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
src/utils/config1.ts
View file @
685f543
...
@@ -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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment