Commit 730dd9c5 authored by Xuguangxing's avatar Xuguangxing

feat: 处理编辑器请求数据的问题

parent 8f639126
......@@ -53,7 +53,7 @@ export default class EditorController extends Controller {
let pageInfo = isEditor ? null : await ctx.service.redis.get(`pageInfo:${ctx.params.uuid}`);
console.log('redis', pageInfo);
if (!pageInfo) {
let pageInfo = await ctx.model.PageInfo.findOne({where: { uuid: ctx.params.uuid }});
pageInfo = await ctx.model.PageInfo.findOne({where: { uuid: ctx.params.uuid }});
console.log('sql', pageInfo);
if (ctx.query.lite && pageInfo) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment