fix: Adjust the order of hook function parameters

This commit is contained in:
Gabe
2025-08-30 18:21:28 +08:00
parent 5fb7157f57
commit 4a5e6c2a23
2 changed files with 4 additions and 4 deletions

View File

@@ -152,7 +152,7 @@ export default function Content({ q, keeps, translator, $el }) {
// 翻译完成钩子函数
interpreter.run(`exports.transEndHook = ${transEndHook}`);
return interpreter.exports.transEndHook($el, q, text, keeps);
return interpreter.exports.transEndHook($el, text, q, keeps);
}, [loading, $el, q, text, keeps, transEndHook]);
if (loading) {