From 8419a18b222ccadd1f4ff8e1bfa1889b86f76fde Mon Sep 17 00:00:00 2001 From: Megghy Date: Sun, 24 Dec 2023 00:00:00 +0800 Subject: [PATCH] update alert --- .github/workflows/node.js.yml | 3 - src/api/api-models.ts | 1 + src/components/RegisterAndLogin.vue | 6 +- src/data/constants.ts | 1 + src/views/ManageLayout.vue | 31 +- src/views/VideoCollectPublic.vue | 5 +- src/views/manage/DashboardView.vue | 5 +- src/views/manage/LotteryView.vue | 6 +- src/views/manage/SongListManageView.vue | 1 + src/views/open_live/MusicRequest.vue | 1106 +---------------------- src/views/open_live/ReadDanmaku.vue | 47 +- src/views/open_live/SongRequest.vue | 1101 ++++++++++++++++++++++ 12 files changed, 1221 insertions(+), 1092 deletions(-) create mode 100644 src/views/open_live/SongRequest.vue diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 87ffab8..61884fb 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -32,8 +32,5 @@ jobs: - name: Check Yarn Version run: yarn --version - - name: Install dependencies - run: yarn install - - name: Build the project run: yarn build diff --git a/src/api/api-models.ts b/src/api/api-models.ts index 070067d..7e90d88 100644 --- a/src/api/api-models.ts +++ b/src/api/api-models.ts @@ -194,6 +194,7 @@ export interface SongsInfo { updateTime: number //paidSong: boolean options?: SongRequestOption + cover?: string } export interface SongRequestOption { needJianzhang: boolean diff --git a/src/components/RegisterAndLogin.vue b/src/components/RegisterAndLogin.vue index c48bc14..2804329 100644 --- a/src/components/RegisterAndLogin.vue +++ b/src/components/RegisterAndLogin.vue @@ -4,7 +4,7 @@ import { QueryGetAPI, QueryPostAPI } from '@/api/query' import { ACCOUNT_API_URL, TURNSTILE_KEY } from '@/data/constants' import { useLocalStorage } from '@vueuse/core' import { FormInst, FormItemInst, FormItemRule, FormRules, NAlert, NButton, NCard, NCountdown, NDivider, NForm, NFormItem, NInput, NSpace, NTabPane, NTabs, useMessage } from 'naive-ui' -import { ref } from 'vue' +import { onUnmounted, ref } from 'vue' import VueTurnstile from 'vue-turnstile' interface RegisterModel { @@ -179,6 +179,10 @@ function onForgetPasswordClick() { selectedTab.value = 'forget' }, 50) } + +onUnmounted(() => { + turnstile.value?.remove() +})