From f0c4104de3ea56f196ff7a366e379283fb37ec8c Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Wed, 10 Jun 2026 18:09:55 +0800
Subject: [PATCH] 1

---
 src/views/customerService/index.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/views/customerService/index.vue b/src/views/customerService/index.vue
index 6d3b92d..361d3c7 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>
@@ -341,6 +346,9 @@
 }
 
 .left-chatBg {
-  background: $input_background;
+  // background: $input_background;
+  background: #dddddd;
+  border-radius: 10px;
+
 }
 </style>

--
Gitblit v1.9.3