mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
⚡️ 调整逻辑
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user