Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 85aef798
authored
Jul 12, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
b4a0409f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
src/config/index.js
src/setup/qiankun.js
src/config/index.js
View file @
85aef79
...
...
@@ -10,18 +10,17 @@
// let request = require('@/http/request.js')
let
cfg
=
require
(
'./conf.js'
)
import
{
Http
}
from
'glsx-common'
let
timeout
=
30000
//超时时间
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
// console.log(1111111)
export
const
fetchConfig
=
function
(
common
)
{
// if (isEnv) {
// let { request } = cfg
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
//
let { request } = cfg
//
Object.assign(request, { timeout })
//
return Promise.resolve(cfg)
// }
//return window.fetch('https://', {}).then(res => res.json())
return
new
Http
().
get
(
'https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config'
)
// return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
let
params
=
{
moduleName
:
'activityCenter'
,
mockUrl
:
'https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config'
,
httpOptions
:
{
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}
}
return
common
.
utils
.
getConfig
(
params
)
}
export
const
config
=
{
install
(
vue
,
cfg
)
{
vue
.
prototype
.
$config
=
cfg
...
...
src/setup/qiankun.js
View file @
85aef79
...
...
@@ -12,7 +12,7 @@ let instance = null
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
,
merchantId
,
saasOrder
}
=
await
fetchConfig
()
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
,
merchantId
,
saasOrder
}
=
await
fetchConfig
(
common
)
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$merchantId
=
merchantId
Vue
.
prototype
.
$saasOrder
=
saasOrder
...
...
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