From 5f2f0020dae9ff9f6b129f2a4f90010bc442242e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Tue, 30 Jan 2024 13:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- src/components/wiki/twg-card.vue | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index d2597c58..c600d7ce 100644 --- a/src/App.vue +++ b/src/App.vue @@ -207,10 +207,10 @@ async function getDeepLink(): Promise { // 检测更新 async function checkUpdate(): Promise { - if (!appStore.loading) return; const isProdEnv = import.meta.env.MODE === "production"; const needUpdate = await TGSqlite.checkUpdate(); if (needUpdate && isProdEnv) { + await TGLogger.Info("[App][checkUpdate] 检测到版本更新!"); const confirm = await showConfirm({ title: "检测到版本更新", text: "请到设置页手动更新版本,即将弹出更新说明子页面", diff --git a/src/components/wiki/twg-card.vue b/src/components/wiki/twg-card.vue index 23d6cd69..c327844b 100644 --- a/src/components/wiki/twg-card.vue +++ b/src/components/wiki/twg-card.vue @@ -19,8 +19,7 @@ interface TwgCardProps { const props = defineProps(); function toWiki(): void { - if (!props.data.contentId) return; - if (props.data.contentId === 0) { + if (!props.data.contentId || props.data.contentId === 0) { showSnackbar({ text: `卡牌 ${props.data.name} 暂无外部链接`, color: "error",