docs: fix pictures example
This commit is contained in:
parent
cd9c664e81
commit
1de7cfc773
@ -10,7 +10,7 @@ import { ref, onMounted } from 'vue'
|
|||||||
const list = ref([])
|
const list = ref([])
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
const res = await fetch('https://api.pengzhanbo.cn/wallpaper/bing/list/zh/').then((res) => res.json())
|
const res = await fetch('https://api.pengzhanbo.cn/wallpaper/bing/zh/').then((res) => res.json())
|
||||||
list.value = res.map(item => ({
|
list.value = res.map(item => ({
|
||||||
title: item.title,
|
title: item.title,
|
||||||
image: item.url,
|
image: item.url,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user