File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,13 @@ async function copyUrl() {
40
40
</Badge >
41
41
</span >
42
42
<ul >
43
- <TokutenItem v-for =" (item, i) in data.items" :title =" data.title" :index =" i" :data =" item" />
43
+ <TokutenItem
44
+ v-for =" (item, i) in data.items"
45
+ :provider =" data.provider"
46
+ :title =" data.title"
47
+ :index =" i"
48
+ :data =" item"
49
+ />
44
50
</ul >
45
51
</li >
46
52
</template >
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { toast } from 'vue-sonner';
6
6
import { Download , Copy , ClipboardCopy } from ' lucide-vue-next' ;
7
7
8
8
const props = defineProps <{
9
+ provider: string ;
9
10
title: string ;
10
11
index: number ;
11
12
data: DetailItem ;
@@ -23,7 +24,7 @@ async function downloadImage() {
23
24
// 创建 a 标签
24
25
const a = document .createElement (' a' );
25
26
a .href = url ;
26
- a .download = ` ${props .title }_${props .index } ` ;
27
+ a .download = ` ${props .title }_${props .provider }_${ props . index } ` ;
27
28
a .click ();
28
29
29
30
// 清理
You can’t perform that action at this time.
0 commit comments