手机端使用codemirror

This commit is contained in:
hanhh
2021-07-31 23:09:53 +08:00
parent 38609feee9
commit 9728119101
20 changed files with 735 additions and 120 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ export default (app: Router) => {
const { name, content } = req.body;
const path = `${config.configPath}${name}`;
fs.writeFileSync(path, content);
res.send({ code: 200, msg: '保存成功' });
res.send({ code: 200, message: '保存成功' });
} catch (e) {
logger.error('🔥 error: %o', e);
return next(e);