更新国际化文案

This commit is contained in:
whyour
2026-06-11 23:18:45 +08:00
parent 05f8fd3805
commit 6796068523
10 changed files with 26 additions and 13 deletions
+2 -2
View File
@@ -83,10 +83,10 @@ export default (app: Router) => {
!path.startsWith(config.configPath) &&
!path.startsWith(config.scriptPath)
) {
return res.send({ code: 403, message: '文件路径无效' });
return res.send({ code: 403, message: t('文件路径无效') });
}
await writeFileWithLock(path, content);
res.send({ code: 200, message: '保存成功' });
res.send({ code: 200, message: t('保存成功') });
} catch (e) {
return next(e);
}