nieyuge 2 år sedan
förälder
incheckning
b7307099a5
1 ändrade filer med 5 tillägg och 1 borttagningar
  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>