mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-16 09:58:13 +08:00
🐛 调整不存在时的默认 id
This commit is contained in:
@@ -136,7 +136,7 @@ onMounted(() => {
|
|||||||
function toOuter(cardName: string, cardId: number): void {
|
function toOuter(cardName: string, cardId: number): void {
|
||||||
console.log(cardName, cardId);
|
console.log(cardName, cardId);
|
||||||
// 若不存在 contentId
|
// 若不存在 contentId
|
||||||
if (cardId === -1) {
|
if (cardId === 0) {
|
||||||
showSnackbar({
|
showSnackbar({
|
||||||
text: "该卡牌暂无外部链接",
|
text: "该卡牌暂无外部链接",
|
||||||
color: "error",
|
color: "error",
|
||||||
|
|||||||
Reference in New Issue
Block a user