️ 调整逻辑

This commit is contained in:
目棃
2024-01-30 13:21:54 +08:00
parent fef22ff146
commit 5f2f0020da
2 changed files with 2 additions and 3 deletions

View File

@@ -207,10 +207,10 @@ async function getDeepLink(): Promise<void> {
// 检测更新
async function checkUpdate(): Promise<void> {
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: "请到设置页手动更新版本,即将弹出更新说明子页面",

View File

@@ -19,8 +19,7 @@ interface TwgCardProps {
const props = defineProps<TwgCardProps>();
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",