fix image check in production bug
Showing
1 changed file
with
3 additions
and
3 deletions
@@ -30,9 +30,9 @@ const stringProcess = require('./utils/string-process'); | @@ -30,9 +30,9 @@ const stringProcess = require('./utils/string-process'); | ||
30 | const app = express(); | 30 | const app = express(); |
31 | 31 | ||
32 | // 向模板注入变量 | 32 | // 向模板注入变量 |
33 | -app.locals.devEnv = app.get('env') === 'development'; | ||
34 | -app.locals.isProduction = app.get('env') === 'production'; | ||
35 | -app.locals.version = pkg.version; | 33 | +global.devEnv = app.locals.devEnv = app.get('env') === 'development'; |
34 | +global.isProduction = app.locals.isProduction = app.get('env') === 'production'; | ||
35 | +global.version = app.locals.version = pkg.version; | ||
36 | app.locals.startTime = moment().format('YYYYMMDDHH'); | 36 | app.locals.startTime = moment().format('YYYYMMDDHH'); |
37 | app.locals.currentYear = moment().format('YYYY'); | 37 | app.locals.currentYear = moment().format('YYYY'); |
38 | 38 |
-
Please register or login to post a comment