| | |
| | | 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"; |
| | |
| | | onUnmounted(() => { |
| | | clearIntervalTimer() |
| | | }) |
| | | |
| | | onBeforeUnmount(() => { |
| | | let lastTimerId = setInterval(() => {}, 1000); |
| | | for (let i = 1; i <= lastTimerId; i++) { |
| | | clearInterval(i); |
| | | } |
| | | }) |
| | | |
| | | </script> |
| | | <style lang="scss" scoped> |