mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-10 08:57:10 +08:00
fix: 修复获取赞助数据错误
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user