sa2kit 1.6.83 → 1.6.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -661,19 +661,13 @@ var init_useMasterpiecesConfig = __esm({
661
661
  setLoading(true);
662
662
  setError(null);
663
663
  console.log("\u{1F4E1} [Hook] \u5E76\u884C\u8BF7\u6C42\u6240\u6709\u6570\u636E...");
664
- const timestamp = Date.now();
665
664
  const [configData, collectionsResponse, categoriesData, tagsData] = await Promise.all([
666
665
  getConfig(),
667
- fetch(`/api/showmasterpiece/collections?_t=${timestamp}&nocache=true&includeImages=true`, {
668
- headers: {
669
- "Cache-Control": "no-cache",
670
- "Pragma": "no-cache"
671
- }
672
- }).then((r) => r.json()),
666
+ getAllCollections(),
673
667
  getCategories(),
674
668
  getTags()
675
669
  ]);
676
- const collectionsData = collectionsResponse.data || [];
670
+ const collectionsData = Array.isArray(collectionsResponse) ? collectionsResponse : [];
677
671
  console.log("\u2705 [Hook] \u6570\u636E\u52A0\u8F7D\u5B8C\u6210:", {
678
672
  \u914D\u7F6E: configData ? "\u5DF2\u52A0\u8F7D" : "\u672A\u52A0\u8F7D",
679
673
  \u753B\u96C6\u6570\u91CF: collectionsData.length,