将monaco-editor作为在线IDE编辑器

This commit is contained in:
masnn committed 2020-04-09 18:57:42 +08:00
1 parent 4c53fc8146
commit 53a6dbeb1a
9 files changed
+81 -134

No files matched your search

+1 -4
View File
@@ -44,10 +44,7 @@ MIDDLEWARE(async (ctx, next) => {
}
}
};
ctx.back = () => {
console.log(122143);
ctx.redirect(ctx.request.headers.referer || '/');
};
ctx.back = () => ctx.redirect(ctx.request.headers.referer || '/');
ctx.csrf_token = await token.add(token.TYPE_CSRF_TOKEN, 600, ctx.path);
await next();
if (ctx.session.sid)