From a216bb9851ab2cfa12473ccc3daa4fff3e1c47ff Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 25 Mar 2024 14:52:09 +0800 Subject: [PATCH] theme-game-loading --- themes/game/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/game/index.js b/themes/game/index.js index 07bddee5..ccc9c3c7 100644 --- a/themes/game/index.js +++ b/themes/game/index.js @@ -1,3 +1,4 @@ +/* eslint-disable @next/next/no-img-element */ import Comment from '@/components/Comment' import { Draggable } from '@/components/Draggable' import { AdSlot } from '@/components/GoogleAdsense' @@ -278,7 +279,7 @@ const LayoutArchive = props => { const LayoutSlug = props => { const { post, allNavPages, recommendPosts, lock, validPassword } = props const game = deepClone(post) - const [loading, setLoading] = useState(false) + const [loading, setLoading] = useState(true) // const [url, setUrl] = useState(game?.ext?.href) const relateGames = recommendPosts const randomGames = shuffleArray(deepClone(allNavPages)) @@ -380,7 +381,6 @@ const LayoutSlug = props => { {/* 游戏封面图 */} - {/* eslint-disable-next-line @next/next/no-img-element */} {game?.img && (