闪电 10 mēneši atpakaļ
vecāks
revīzija
14b6d4f6b8

+ 1 - 1
src/components/callLogs/audioPlayer.vue

@@ -78,7 +78,7 @@
78 78
         <div v-for="(keyword, index) in keywords" :key="index"
79 79
           class="relative inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
80 80
           {{ keyword.text }}
81
-          <span
81
+          <span v-if="keyword.count > 1"
82 82
             class="absolute -top-2 -right-2 flex items-center justify-center w-5 h-5 text-xs font-bold text-white bg-red-500 rounded-full">{{
83 83
             keyword.count }}</span>
84 84
         </div>

+ 2 - 2
src/views/main/phone/index.vue

@@ -777,8 +777,8 @@ const submit = async () => {
777 777
             };
778 778
             if (callid.value) params.callId = callid.value;
779 779
 
780
-            if (keywords.value.length > 0) {
781
-
780
+            if (keywords.value.length > 0 && callid.value) {
781
+                saveTranslate(callid.value, keywords.value);
782 782
             }
783 783
 
784 784
             // 提交表单