theme-game-loading

This commit is contained in:
tangly1024.com
2024-03-25 14:52:09 +08:00
parent 783354ccf9
commit a216bb9851

View File

@@ -1,3 +1,4 @@
/* eslint-disable @next/next/no-img-element */
import Comment from '@/components/Comment' import Comment from '@/components/Comment'
import { Draggable } from '@/components/Draggable' import { Draggable } from '@/components/Draggable'
import { AdSlot } from '@/components/GoogleAdsense' import { AdSlot } from '@/components/GoogleAdsense'
@@ -278,7 +279,7 @@ const LayoutArchive = props => {
const LayoutSlug = props => { const LayoutSlug = props => {
const { post, allNavPages, recommendPosts, lock, validPassword } = props const { post, allNavPages, recommendPosts, lock, validPassword } = props
const game = deepClone(post) const game = deepClone(post)
const [loading, setLoading] = useState(false) const [loading, setLoading] = useState(true)
// const [url, setUrl] = useState(game?.ext?.href) // const [url, setUrl] = useState(game?.ext?.href)
const relateGames = recommendPosts const relateGames = recommendPosts
const randomGames = shuffleArray(deepClone(allNavPages)) const randomGames = shuffleArray(deepClone(allNavPages))
@@ -380,7 +381,6 @@ const LayoutSlug = props => {
</div> </div>
{/* 游戏封面图 */} {/* 游戏封面图 */}
{/* eslint-disable-next-line @next/next/no-img-element */}
{game?.img && ( {game?.img && (
<img <img
src={game?.img} src={game?.img}