Commit f35db025 authored by 郭志伟's avatar 郭志伟

fix: 修复问题

parent b2d60fbe
......@@ -11,7 +11,7 @@ export default class EditorController extends Controller {
public async home(ctx: Context) {
const { api, qiniu } = await import(path.resolve('./config/apollo.json'));
await ctx.renderClient('editor.js', {
apollo: process.env.NODE_ENV === 'production' ? JSON.stringify({...api, ...qiniu}) : {}
apollo: process.env.NODE_ENV === 'production' ? {...api, ...qiniu} : null
// apollo: {...api, ...qiniu}
});
}
......
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