1
2026-05-31 304f819d3e9b2498ebdb70b99b632cda67725a52
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;