From 375c18a6d2713ff19b22093eec57315992d8333f Mon Sep 17 00:00:00 2001
From: Codex Assistant <codex@example.com>
Date: 星期四, 06 十一月 2025 13:33:52 +0800
Subject: [PATCH] 增加评审下载
---
web/src/api/carousel.js | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/web/src/api/carousel.js b/web/src/api/carousel.js
index 802b3f6..e28f364 100644
--- a/web/src/api/carousel.js
+++ b/web/src/api/carousel.js
@@ -77,26 +77,26 @@
export const CarouselApi = {
// 鍒嗛〉鏌ヨ杞挱鍥�
getCarousels: async (page = 0, size = 10, title) => {
- const data = await graphqlRequest(GET_CAROUSELS, { page, size, title })
- return data.carousels
+ const result = await graphqlRequest(GET_CAROUSELS, { page, size, title })
+ return result.data.carousels
},
// 鏍规嵁ID鏌ヨ杞挱鍥�
getCarousel: async (id) => {
- const data = await graphqlRequest(GET_CAROUSEL, { id })
- return data.carousel
+ const result = await graphqlRequest(GET_CAROUSEL, { id })
+ return result.data.carousel
},
// 鑾峰彇鎾斁鍒楄〃
getPlayList: async () => {
- const data = await graphqlRequest(GET_CAROUSEL_PLAY_LIST)
- return data.carouselPlayList
+ const result = await graphqlRequest(GET_CAROUSEL_PLAY_LIST)
+ return result.data.carouselPlayList
},
// 淇濆瓨杞挱鍥�
saveCarousel: async (carousel) => {
- const data = await graphqlRequest(SAVE_CAROUSEL, { carousel })
- return data.saveCarousel
+ const result = await graphqlRequest(SAVE_CAROUSEL, { carousel })
+ return result.data.saveCarousel
},
// 鍒犻櫎杞挱鍥�
--
Gitblit v1.8.0