Procházet zdrojové kódy

默认翻译为中文

zq před 17 hodinami
rodič
revize
b55ae3ef35
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/components/TranslateDialog.vue

+ 2 - 2
src/components/TranslateDialog.vue

@@ -137,11 +137,11 @@ export default {
       };
       Texttrans(params)
         .then((res) => {
-          if (res.status == 1) {
+          if (res.status === 1) {
             this.translateResultList = res.trans_list || [];
           }
         })
-        .catch((err) => {
+        .catch(() => {
           this.$message.error('翻译失败');
         });
     },