nieyuge 2 gadi atpakaļ
vecāks
revīzija
b7307099a5
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  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>