Open CMS2019 opened 5 years ago
好像server.js中formatHtml函数中html.replace(/<script\s>\s__NEXT_DATA__\s*=([\s\S]+?)<\/script>/ig, 与app.renderToHTML(ctx.req, ctx.res, ctx.path, ctx.query)生成的html字符串复无法匹配,
导致一直是模板更新,无法做到更细粒度的数据更新啊...???
好像server.js中formatHtml函数中html.replace(/<script\s>\s__NEXT_DATA__\s*=([\s\S]+?)<\/script>/ig, 与app.renderToHTML(ctx.req, ctx.res, ctx.path, ctx.query)生成的html字符串复无法匹配,
导致一直是模板更新,无法做到更细粒度的数据更新啊...???