update alert

This commit is contained in:
2023-12-24 00:00:00 +08:00
parent 1305e62277
commit 8419a18b22
12 changed files with 1221 additions and 1092 deletions

View File

@@ -7,7 +7,7 @@ import { ACCOUNT_API_URL, TURNSTILE_KEY } from '@/data/constants'
import { Question24Regular } from '@vicons/fluent'
import { useLocalStorage } from '@vueuse/core'
import { NAlert, NButton, NCard, NCountdown, NDivider, NEllipsis, NIcon, NInput, NInputGroup, NModal, NPopconfirm, NSpace, NTag, NText, NTime, NTooltip, useMessage } from 'naive-ui'
import { ref } from 'vue'
import { onUnmounted, ref } from 'vue'
import VueTurnstile from 'vue-turnstile'
import SettingsManageView from './SettingsManageView.vue'
@@ -193,6 +193,9 @@ async function ChangeBili() {
isLoading.value = false
})
}
onUnmounted(() => {
turnstile.value?.remove()
})
</script>
<template>

View File

@@ -33,7 +33,7 @@ import {
useMessage,
useNotification,
} from 'naive-ui'
import { computed, h, ref } from 'vue'
import { computed, h, onUnmounted, ref } from 'vue'
import VueTurnstile from 'vue-turnstile'
interface TempLotteryResponseModel {
@@ -310,6 +310,10 @@ function getLevelColor(level: number) {
}
}
}
onUnmounted(() => {
turnstile.value?.remove()
})
</script>
<template>

View File

@@ -233,6 +233,7 @@ async function addSongs(songsShoudAdd: SongsInfo[], from: SongFrom) {
Author: s.author,
Url: s.url,
Description: s.description,
Cover: s.cover,
})),
)
}