闪电 10 months ago
parent
commit
14b6d4f6b8
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/components/callLogs/audioPlayer.vue
  2. 2 2
      src/views/main/phone/index.vue

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

78
         <div v-for="(keyword, index) in keywords" :key="index"
78
         <div v-for="(keyword, index) in keywords" :key="index"
79
           class="relative inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
79
           class="relative inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
80
           {{ keyword.text }}
80
           {{ keyword.text }}
81
-          <span
81
+          <span v-if="keyword.count > 1"
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">{{
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
             keyword.count }}</span>
83
             keyword.count }}</span>
84
         </div>
84
         </div>

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

777
             };
777
             };
778
             if (callid.value) params.callId = callid.value;
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
             // 提交表单