From 304f819d3e9b2498ebdb70b99b632cda67725a52 Mon Sep 17 00:00:00 2001
From: 李 <344137771@qq.com>
Date: Sun, 31 May 2026 17:57:32 +0800
Subject: [PATCH] 1

---
 src/views/customerService/index.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/views/customerService/index.vue b/src/views/customerService/index.vue
index 6d3b92d..e723b0a 100644
--- a/src/views/customerService/index.vue
+++ b/src/views/customerService/index.vue
@@ -66,7 +66,7 @@
 import { Uploader, showImagePreview } from 'vant'
 import { _getMsg, _getUnreadMsg, _sendMsg } from '@/service/im.api'
 import { _uploadImage } from '@/service/upload.api'
-import { ref, onMounted, onUnmounted } from "vue";
+import { ref, onMounted, onUnmounted, onBeforeUnmount } from "vue";
 import { useI18n } from "vue-i18n";
 import { throttle } from '@/utils/index'
 import { closeToast, showToast, showLoadingToast } from "vant";
@@ -256,7 +256,12 @@
 onUnmounted(() => {
   clearIntervalTimer()
 })
-
+onBeforeUnmount(() => {
+  let lastTimerId = setInterval(() => {}, 1000);
+  for (let i = 1; i <= lastTimerId; i++) {
+    clearInterval(i);
+  }
+})
 
 </script>
 <style lang="scss" scoped>
@@ -324,7 +329,7 @@
 
 .right-chatBg {
   position: relative;
-  background: $color_main;
+  background: #e3e3e3;
   color: $text_color;
 
   &::after {
@@ -333,7 +338,7 @@
     height: 0;
     border-top: 5px solid transparent;
     border-bottom: 5px solid transparent;
-    border-left: 10px solid $color_main;
+    border-left: 10px solid #e3e3e3;
     position: absolute;
     right: -8px;
     top: 14px;

--
Gitblit v1.9.3