Commit 9c0ba79d authored by 郭志伟's avatar 郭志伟

fix(editor.ts): apollo问题修复

parent 1f77a9e7
......@@ -8,11 +8,7 @@ export default class EditorController extends Controller {
}
public async home(ctx: Context) {
let apollo = {};
if (process.env.NODE_ENV === 'production' && process.env.EGG_SERVER_ENV === 'sit') {
apollo = ctx.app.config.apollo || {};
}
const apollo = ctx.app.config.apollo || {};
await ctx.renderClient('editor.js', { apollo });
}
......
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