Skip to content

Commit

Permalink
⚡️ 调整逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Jan 30, 2024
1 parent fef22ff commit 5f2f002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: "请到设置页手动更新版本,即将弹出更新说明子页面",
Expand Down
3 changes: 1 addition & 2 deletions src/components/wiki/twg-card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5f2f002

Please sign in to comment.