fix: 修复获取赞助数据错误

This commit is contained in:
2025-04-15 21:37:41 +08:00
parent cd1b0b8c09
commit 1536fff3b4

View File

@@ -48,10 +48,10 @@ const getDataList = async () => {
try { try {
loading.value = true loading.value = true
const base = `https://continew.top` const base = `https://continew.top`
const data = await (await fetch(`${base}/sponsor.json`)).json() const data = await (await fetch(`${base}/sponsor.json?${new Date().getTime()}`)).json()
if (data) { if (data) {
// 只获取 special 和 platinum 赞助者 // 只获取 special 和 platinum 赞助者
const sponsors = [...data.special, data.platinum] const sponsors = [...data.special, ...data.platinum]
sponsors.forEach((item) => { sponsors.forEach((item) => {
if (!item.name) { if (!item.name) {
return return