📅  最后修改于: 2022-03-11 15:02:24.785000             🧑  作者: Mango
app.use(require('connect-flash')());
app.use(function (req, res, next) {
res.locals.messages = require('express-messages')(req, res);
next();
});