Authored by ccbikai(👎🏻🍜)

修改静态资源时间

Showing 1 changed file with 2 additions and 1 deletions
... ... @@ -21,6 +21,7 @@ const compression = require('compression');
const bodyParser = require('body-parser');
const cookieParser = require('cookie-parser');
const uuid = require('uuid');
const moment = require('moment');
const pkg = require('./package.json');
const cookieSession = require('client-sessions');
... ... @@ -34,7 +35,7 @@ const app = express();
// 向模板注入变量
app.locals.devEnv = app.get('env') === 'development';
app.locals.version = pkg.version;
app.locals.startTime = Date.now();
app.locals.startTime = moment().format('YYYYMMDDHH');
// 全局注册library
yohoLib.global(config);
... ...