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

View File

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