nieyuge 2 년 전
부모
커밋
b7307099a5
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/view/iframe/publish/give-dialog.vue

+ 5 - 1
src/view/iframe/publish/give-dialog.vue

@@ -400,7 +400,7 @@
 </template>
 
 <script setup>
-import { ref, watch, reactive, defineProps, defineEmits, onMounted, nextTick, provide } from "vue";
+import { ref, watch, reactive, defineProps, defineEmits, onMounted, nextTick, provide, onUnmounted } from "vue";
 import { postPublish, verifyPaypalResult, syncChainTokenRechargeRecord, getCurrencyInfoByCode } from "@/http/publishApi";
 import { getInviteGuildInfo, saveInviteGuildInfo } from "@/http/discordApi";
 import { payCalcFee, getPayConfig } from "@/http/pay";
@@ -1382,6 +1382,10 @@ onMounted(() => {
         getCurrencyInfo();
     }, 10000)
 });
+
+onUnmounted(() => {
+    clearInterval(timer.value);
+})
 </script>
 
 <style lang="scss" scoped>