Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 a3fdb1c9
authored
Mar 31, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'wangzh_dev_2.0.0' into 'v2.0.0'
版本已上线,封版 See merge request
!10
2 parents
f5d3cf68
301feecd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
src/config/index.js
src/config/index.js
View file @
a3fdb1c
...
@@ -11,19 +11,19 @@
...
@@ -11,19 +11,19 @@
let
cfg
=
require
(
'./conf.js'
)
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 new Http({request:{timeout:3000}
}).get('https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2')
return
new
Http
({
request
:
{
timeout
:
3000
}
}).
get
(
'https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2'
)
//开发环境mock
//开发环境mock
return
new
Http
({
request
:
{
timeout
:
3000
}
}).
get
(
'http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2'
)
//
return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
}
}
export
const
config
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
vue
.
prototype
.
$config
=
cfg
}
}
\ No newline at end of file
\ No newline at end of file
install
(
vue
,
cfg
)
{
vue
.
prototype
.
$config
=
cfg
}
}
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