mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-05 23:16:52 +00:00
theme-game-loading
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user