Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
ccbikai
2016-07-23 15:48:10 +0800
Commit
07de44550b805d698511f0c8c126003150248c7a
1 parent
749812de
环境修改
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
app.js
dispatch.js
app.js
View file @
07de445
...
...
@@ -28,6 +28,7 @@ const MemcachedStore = memcached(session);
// 向模板注入变量
app
.
locals
.
devEnv
=
app
.
get
(
'env'
)
===
'development'
;
app
.
locals
.
proEnv
=
app
.
get
(
'env'
)
===
'production'
;
app
.
locals
.
version
=
pkg
.
version
;
// 全局注册library
...
...
dispatch.js
View file @
07de445
...
...
@@ -12,7 +12,7 @@ module.exports = app => {
app
.
use
(
'/home'
,
require
(
'./apps/home'
));
// 组件示例
if
(
app
.
locals
.
dev
Env
)
{
if
(
!
app
.
locals
.
pro
Env
)
{
app
.
use
(
'/example'
,
require
(
'./apps/example'
));
}
};
...
...
Please
register
or
login
to post a comment