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 06212f1
Showing 1 changed file with 1 addition and 2 deletions.
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 06212f1

Please sign in to comment.