This commit is contained in:
Gabe
2025-07-03 18:08:49 +08:00
parent b2a1309caa
commit 42c7dae495
2 changed files with 2 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ import {
import { sha256 } from "../libs/utils"; import { sha256 } from "../libs/utils";
import interpreter from "../libs/interpreter"; import interpreter from "../libs/interpreter";
import { msAuth } from "../libs/auth"; import { msAuth } from "../libs/auth";
import { kissLog } from "../libs/log";
/** /**
* 同步数据 * 同步数据
@@ -226,7 +227,7 @@ export const apiTranslate = async ({
OPT_LANGS_SPECIAL[translator].get("auto"); OPT_LANGS_SPECIAL[translator].get("auto");
const to = OPT_LANGS_SPECIAL[translator].get(toLang); const to = OPT_LANGS_SPECIAL[translator].get(toLang);
if (!to) { if (!to) {
console.log(`[trans] target lang: ${toLang} not support`); kissLog(`target lang: ${toLang} not support`, "translate");
return [trText, isSame]; return [trText, isSame];
} }

View File

@@ -48,7 +48,6 @@ export default function Popup({ setShowPopup, translator: tran }) {
}; };
const handleTransToggle = async (e) => { const handleTransToggle = async (e) => {
console.log({ tran });
try { try {
setRule({ ...rule, transOpen: e.target.checked ? "true" : "false" }); setRule({ ...rule, transOpen: e.target.checked ? "true" : "false" });