Skip to content

Commit

Permalink
Fix: bilibili select video
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyCreeper committed Dec 9, 2023
1 parent d9ec9fb commit cfb6134
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/dialogs/bilibiliParse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ const allShared = () => {
}
};
const cancel = () => {
selectedItems.value = [];
open.value = false;
};
const { execute: reqPushMoviesApi } = pushMoviesApi();
const submit = async () => {
try {
Expand Down Expand Up @@ -164,6 +169,7 @@ defineExpose({
destroy-on-close
:title="`解析结果 (共 ${biliVideos.length} 个视频)`"
class="rounded-lg dark:bg-zinc-800 w-full xl:w-7/12 lg:w-3/7 md:w-8/12 sm:w-full"
@closed="cancel"
>
<h1 class="-mt-8 text-xl font-medium">{{ state?.title }}</h1>
<p class="mt-2">UP 主 / 主演 :{{ state?.actors }}</p>
Expand Down Expand Up @@ -254,7 +260,7 @@ defineExpose({
class="flex-wrap"
/>
<div>
<button class="btn mr-4" @click="open = false">取消</button>
<button class="btn mr-4" @click="cancel">取消</button>
<button v-if="selectedItems.length > 0" class="btn btn-success" @click="submit()">
添加到列表
</button>
Expand Down

0 comments on commit cfb6134

Please sign in to comment.