feat:移除无用依赖
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {Article, ArticleWord, DictType, getDefaultArticleWord, Sentence} from "@/types.ts";
|
||||
import {cloneDeep} from "lodash-es";
|
||||
import {cloneDeep} from "@/utils";
|
||||
import nlp from "compromise/one";
|
||||
import {usePlayWordAudio} from "@/hooks/sound.ts";
|
||||
import {getSentenceAllText, getSentenceAllTranslateText} from "@/hooks/translate.ts";
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import {Article, Dict, Word} from "@/types.ts";
|
||||
import {Article, Word} from "@/types.ts";
|
||||
import {useBaseStore} from "@/stores/base.ts";
|
||||
import {cloneDeep,} from "lodash-es";
|
||||
import {isArticle} from "@/hooks/article.ts";
|
||||
|
||||
|
||||
export function useWordOptions() {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import {Article, Sentence, TranslateEngine} from "@/types.ts";
|
||||
import Baidu from "@opentranslate/baidu";
|
||||
import {axiosInstance} from "@/utils/http.ts";
|
||||
import {Translator} from "@opentranslate/translator/src/translator.ts";
|
||||
|
||||
export function getSentenceAllTranslateText(article: Article) {
|
||||
@@ -27,7 +26,6 @@ export async function getNetworkTranslate(
|
||||
let translator: Translator
|
||||
if (translateEngine === TranslateEngine.Baidu) {
|
||||
translator = new Baidu({
|
||||
axios: axiosInstance as any,
|
||||
config: {
|
||||
appid: "20230910001811857",
|
||||
key: "Xxe_yftQR3K3Ue43NQMC"
|
||||
|
||||
Reference in New Issue
Block a user