Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
data-view
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 f45040dd
authored
Jul 11, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
mock环境
1 parent
105b5353
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/config/index.js
src/config/index.js
View file @
f45040d
...
...
@@ -15,11 +15,11 @@ export const fetchConfig = function (isEnv = true) {
Object
.
assign
(
request
,
{
timeout
})
return
Promise
.
resolve
(
config
)
}
/**测试mock */
return
window
.
fetch
(
'https://oss-config.dev.glsx.com.cn/mock/62bd8142304f1311a3b76a04/data-view/config'
,
{}).
then
(
res
=>
res
.
json
())
/
/ /**生产 */ return window.fetch('https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-main-
config', {}).then(res => res.json())
//
/**测试mock */ return window.fetch('https://oss-config.dev.glsx.com.cn/mock/62bd8142304f1311a3b76a04/data-view/config', {}).then(res => res.json())
/
**生产 */
return
window
.
fetch
(
'https://oss-config.glsx.com.cn/mock/62cbf569f5137cf37678b828/data-view/
config'
,
{}).
then
(
res
=>
res
.
json
())
}
export
const
cfg
=
{
install
(
vue
,
config
)
{
vue
.
prototype
.
$config
=
config
}
}
\ 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