Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-main
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 520db0a6
authored
May 31, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
切换至生产mock
1 parent
ef2e3692
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
src/config/index.js
src/views/workbench/index.vue
src/config/index.js
View file @
520db0a
...
@@ -15,8 +15,8 @@ export const fetchConfig = function (isEnv = true) {
...
@@ -15,8 +15,8 @@ export const fetchConfig = function (isEnv = true) {
Object
.
assign
(
request
,
{
timeout
})
Object
.
assign
(
request
,
{
timeout
})
return
Promise
.
resolve
(
config
)
return
Promise
.
resolve
(
config
)
}
}
/**测试mock */
return
window
.
fetch
(
'https://oss-config.dev.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/617918601072f92988f05a11/base/scrm-wx-work-main-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())
/**生产 */
return
window
.
fetch
(
'https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-main-config'
,
{}).
then
(
res
=>
res
.
json
())
}
}
export
const
cfg
=
{
export
const
cfg
=
{
install
(
vue
,
config
)
{
install
(
vue
,
config
)
{
...
...
src/views/workbench/index.vue
View file @
520db0a
...
@@ -60,9 +60,6 @@ export default {
...
@@ -60,9 +60,6 @@ export default {
})
})
},
},
mounted
()
{
mounted
()
{
// setInterval(() => {
// window.location.reload()
// }, 60e3)
},
},
methods
:
{
methods
:
{
setMenuData
(
list
=
[])
{
setMenuData
(
list
=
[])
{
...
...
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