Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-authorize
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 94a4c7e2
authored
Sep 26, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化样式,复原config和qiankun文件
1 parent
1c148811
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/config/index.js
src/config/index.js
View file @
94a4c7e
...
@@ -12,11 +12,11 @@ let cfg = require('./conf.js')
...
@@ -12,11 +12,11 @@ let cfg = require('./conf.js')
import
{
Http
}
from
'glsx-common'
import
{
Http
}
from
'glsx-common'
let
timeout
=
30000
//超时时间
let
timeout
=
30000
//超时时间
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
if
(
isEnv
)
{
//
if (isEnv) {
let
{
request
}
=
cfg
//
let { request } = cfg
Object
.
assign
(
request
,
{
timeout
})
//
Object.assign(request, { timeout })
return
Promise
.
resolve
(
cfg
)
//
return Promise.resolve(cfg)
}
//
}
//return window.fetch('https://', {}).then(res => res.json())
//return window.fetch('https://', {}).then(res => res.json())
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config')
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config')
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config'
)
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config'
)
...
...
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