Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks-h5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks-h5
Commits
4dc05c87
Commit
4dc05c87
authored
Jun 04, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 问题修复
parent
d2ab8433
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
8 deletions
+26
-8
activity.ts
app/controller/activity.ts
+0
-1
dev.config.ts
app/web/config/dev.config.ts
+26
-7
No files found.
app/controller/activity.ts
View file @
4dc05c87
import
{
Controller
,
Context
}
from
'
egg
'
;
import
{
Controller
,
Context
}
from
'
egg
'
;
import
*
as
path
from
'
path
'
;
export
default
class
ActivityController
extends
Controller
{
export
default
class
ActivityController
extends
Controller
{
public
async
home
(
ctx
:
Context
)
{
public
async
home
(
ctx
:
Context
)
{
...
...
app/web/config/dev.config.ts
View file @
4dc05c87
const
protocol
=
EASY_ENV_IS_BROWSER
?
window
.
location
.
protocol
:
'
http
'
;
import
apolloSsr
from
'
../../../config/apollo.ssr.json
'
;
const
protocol
=
EASY_ENV_IS_BROWSER
?
window
.
location
.
protocol
:
'
https
'
;
export
default
{
const
hostMap
=
{
// apiHost: `http://localhost:7001/`,
apiHost
:
`
${
protocol
}
//quantum-blocks-test1.liangkebang.net`
,
// apiHost: `http://192.168.28.199:7001/`,
apiHost
:
'
https://quantum-blocks-test1.liangkebang.net
'
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=default`
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=default`
,
// opapiHost: `https://opapi-vcc2.liangkebang.net`,
kdspHost
:
'
https://kdsp-api-test1.liangkebang.net
'
,
test
:
true
test
:
true
};
};
if
(
EASY_ENV_IS_BROWSER
)
{
const
apolloWin
=
window
.
apollo
||
window
.
__INITIAL_STATE__
.
apollo
;
if
(
apolloWin
)
{
for
(
const
key
in
apolloWin
)
{
if
(
apolloWin
[
key
])
{
hostMap
[
key
]
=
apolloWin
[
key
];
}
}
}
}
if
(
EASY_ENV_IS_NODE
)
{
if
(
apolloSsr
)
{
for
(
const
key
in
apolloSsr
)
{
if
(
apolloSsr
[
key
])
{
hostMap
[
key
]
=
apolloSsr
[
key
];
}
}
}
}
export
default
hostMap
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment