diff --git a/src/components/wiki/twc-character.vue b/src/components/wiki/twc-character.vue index 32b5d59c..65e8d316 100644 --- a/src/components/wiki/twc-character.vue +++ b/src/components/wiki/twc-character.vue @@ -4,8 +4,12 @@
- {{ data.name }} {{ data.title }} - {{ data.description }} +
+ {{ data.name }} + {{ data.title }} + mdi-link +
+
{{ data.description }}
@@ -93,6 +97,8 @@ import TwcConstellations from "./twc-constellations.vue"; import TwcMaterials from "./twc-materials.vue"; import TwcSkills from "./twc-skills.vue"; import { getWikiData } from "../../data"; +import Mys from "../../plugins/Mys"; +import { createTGWindow } from "../../utils/TGWindow"; import showSnackbar from "../func/snackbar"; import TItembox, { TItemBoxData } from "../main/t-itembox.vue"; @@ -154,6 +160,25 @@ watch( onMounted(async () => { await loadData(); }); + +async function toWiki(): Promise { + if (props.item.contentId === 0) { + showSnackbar({ + text: `角色 ${props.item.name} 暂无详情`, + color: "warn", + }); + return; + } + const url = Mys.Api.Obc.replace("{contentId}", props.item.contentId.toString()); + createTGWindow( + url, + "Sub_window", + `Content_${props.item.contentId} ${props.item.name}`, + 1200, + 800, + true, + ); +}