Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-equity
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 8fb07867
authored
May 16, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更换mock为服务配置
1 parent
e4a0e3d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
package-lock.json
package.json
src/config/index.js
package-lock.json
View file @
8fb0786
This diff could not be displayed because it is too large.
package.json
View file @
8fb0786
...
...
@@ -13,7 +13,7 @@
"cors"
:
"^2.8.5"
,
"el-tree-transfer"
:
"^2.4.7"
,
"element-ui"
:
"^2.15.6"
,
"glsx-common"
:
"^2.
0.4
"
,
"glsx-common"
:
"^2.
1.0
"
,
"glsx-components"
:
"^1.5.2"
,
"glsx-vue-components"
:
"^1.0.15"
,
"vue"
:
"^2.6.14"
,
...
...
src/config/index.js
View file @
8fb0786
...
...
@@ -8,13 +8,12 @@
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
import
{
Http
}
from
'glsx-common'
import
{
utils
}
from
'glsx-common'
let
cfg
=
require
(
'./conf.js'
)
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
// if (isEnv) {
// return Promise.resolve(cfg)
// }
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/616e90b11072f92988f05a09/equity/config'
)
let
params
=
{
moduleName
:
'equity'
,
mockUrl
:
'https://oss-config.dev.glsx.com.cn/mock/616e90b11072f92988f05a09/equity/config'
,
env
:
'test'
,
httpOptions
:
{
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}
}
return
utils
.
getConfig
(
params
)
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/616e90b11072f92988f05a09/equity/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/616e90b11072f92988f05a09/equity/config')
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
...
...
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