修复scripts独立造成shell样式丢失

This commit is contained in:
whyour 2021-03-29 22:42:46 +08:00
parent 9f54a15ab8
commit f0f738f8a2
2 changed files with 2 additions and 3 deletions

View File

@ -36,5 +36,6 @@ export default defineConfig({
'https://gw.alipayobjects.com/os/lib/react-dom/16.13.1/umd/react-dom.production.min.js',
'https://cdn.jsdelivr.net/npm/codemirror@5.60.0/lib/codemirror.min.js',
'https://cdn.jsdelivr.net/npm/darkreader@4.9.27/darkreader.min.js',
'https://cdn.jsdelivr.net/npm/codemirror@5.60.0/mode/shell/shell.js',
],
});

View File

@ -64,9 +64,7 @@ export default ({ app }: { app: Application }) => {
) => {
res.status(err.status || 500);
res.json({
errors: {
message: err.message,
},
message: err.message,
});
},
);