diff --git a/src/components/pageAnno/tao-iframe.vue b/src/components/pageAnno/tao-iframe.vue index 57562ae2..300c0a0a 100644 --- a/src/components/pageAnno/tao-iframe.vue +++ b/src/components/pageAnno/tao-iframe.vue @@ -57,10 +57,8 @@ async function refreshAuthkey(): Promise { async function getUrl(): Promise { const path = "https://sdk.mihoyo.com/hk4e/announcement/index.html"; - if (authkey.value === "") { - await refreshAuthkey(); - } - if (!visible.value) return ""; + if (authkey.value === "") await refreshAuthkey(); + if (authkey.value === "") return ""; const param: Record = { auth_appid: "announcement", authkey_ver: "1",