From a4e31c6519bd339ab9c8570e8275c2366de09fca Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sat, 6 Apr 2024 11:15:46 +0800 Subject: [PATCH] theme-game reloadIframe --- themes/game/components/GameEmbed.js | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/game/components/GameEmbed.js b/themes/game/components/GameEmbed.js index aff7f04b9f0..cb83c8f3576 100644 --- a/themes/game/components/GameEmbed.js +++ b/themes/game/components/GameEmbed.js @@ -37,6 +37,7 @@ export default function GameEmbed({ post, siteInfo }) { // console.log("用户切换到了其他标签页"); } else { // console.log("用户回到了当前页面"); + setLoading(true) // 刷新网页 reloadIframe() // 移除监听器