diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index c39811e92a..c6bdced451 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -383,7 +383,7 @@ const isForeignLanguage: boolean = return postLang !== "" && postLang !== targetLang; })(); -async function translate_(noteId: number, targetLang: string) { +async function translate_(noteId, targetLang: string) { return await os.api("notes/translate", { noteId: noteId, targetLang: targetLang, diff --git a/packages/client/src/components/MkNoteSub.vue b/packages/client/src/components/MkNoteSub.vue index 566cd3dd1f..93137ef023 100644 --- a/packages/client/src/components/MkNoteSub.vue +++ b/packages/client/src/components/MkNoteSub.vue @@ -304,7 +304,7 @@ const isForeignLanguage: boolean = return postLang !== "" && postLang !== targetLang; })(); -async function translate_(noteId: number, targetLang: string) { +async function translate_(noteId, targetLang: string) { return await os.api("notes/translate", { noteId: noteId, targetLang: targetLang,