Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
2018-12-29 16:51:18 +0800
Commit
8f64761c2bcd4f87dcb5bc4c4f43574aea7bca11
1 parent
07152145
commit
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
apps/config/index.js
create-app.js
apps/config/index.js
View file @
8f64761
const
config
=
{
development
:
{
axiosBaseUrl
:
''
,
axiosBaseUrl
:
'
/mapp
'
,
axiosResponseType
:
'json'
,
reportUrl
:
'//badjs.yoho.cn/apm/yas2.gif'
},
production
:
{
axiosBaseUrl
:
''
,
axiosBaseUrl
:
'
/mapp
'
,
axiosResponseType
:
'json'
,
reportUrl
:
'//badjs.yoho.cn/apm/yas2.gif'
}
...
...
create-app.js
View file @
8f64761
...
...
@@ -78,7 +78,7 @@ exports.createApp = async(app) => {
// YOHO 前置中间件
app
.
use
(
setYohoDataMiddleware
);
app
.
use
(
userMiddleware
);
app
.
use
(
ssrApiMiddleware
);
app
.
use
(
'/mapp'
,
ssrApiMiddleware
);
app
.
use
(
ssrRouteMiddleware
.
routers
);
...
...
Please
register
or
login
to post a comment