소스 검색

Merge branch 'master' of http://60.205.254.193:3000/GCLS/eep_page

zq 1 개월 전
부모
커밋
de5b6bc483
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/views/book/components/MultilingualFill.vue

+ 4 - 0
src/views/book/components/MultilingualFill.vue

@@ -158,6 +158,10 @@ export default {
       ];
     },
     textTrans() {
+      if (this.langList.find((item) => item.type === this.curLang).is_can_translation === 'false') {
+        this.$message.warning('该语言不支持自动翻译');
+        return;
+      }
       TextTrans({
         text: this.text.replace(/<[^>]+>/g, ''),
         from: 'zh',