fix no cache error

This commit is contained in:
DIYgod
2018-07-25 23:43:21 +08:00
parent 3461a91b91
commit e507ac46ea

View File

@@ -78,6 +78,11 @@ if (config.cacheType === 'memory') {
},
})
);
} else {
app.context.cache = {
get: () => null,
set: () => null,
};
}
// router