diff --git a/src/components/wiki/twc-constellations.vue b/src/components/wiki/twc-constellations.vue new file mode 100644 index 00000000..09c76451 --- /dev/null +++ b/src/components/wiki/twc-constellations.vue @@ -0,0 +1,83 @@ + + + diff --git a/src/components/wiki/twc-materials.vue b/src/components/wiki/twc-materials.vue new file mode 100644 index 00000000..fcc3d9c8 --- /dev/null +++ b/src/components/wiki/twc-materials.vue @@ -0,0 +1,77 @@ + + + diff --git a/src/pages/WIKI/Character.vue b/src/pages/WIKI/Character.vue index ce52c686..a14b2df9 100644 --- a/src/pages/WIKI/Character.vue +++ b/src/pages/WIKI/Character.vue @@ -23,15 +23,15 @@ const cardsInfo = computed(() => AppCharacterData); const appStore = useAppStore(); function toOuter(item: TGApp.App.Character.WikiBriefInfo): void { - if (item.contentId === 0) { - snackbar.value = true; - return; - } // 如果是调试环境,打开 wiki 页面 if (appStore.devMode) { createWiki("Character", item.id.toString()); return; } + if (item.contentId === 0) { + snackbar.value = true; + return; + } const url = Mys.Api.Obc.replace("{contentId}", item.contentId.toString()); createTGWindow(url, "Sub_window", `Content_${item.contentId} ${item.name}`, 1200, 800, true); } diff --git a/src/views/tw-character.vue b/src/views/tw-character.vue index 30787ae5..7028c28c 100644 --- a/src/views/tw-character.vue +++ b/src/views/tw-character.vue @@ -43,11 +43,10 @@ -
- - -
+ + +
资料
@@ -71,9 +70,10 @@ import { useRoute } from "vue-router"; import TSwitchTheme from "../components/app/t-switchTheme.vue"; import showSnackbar from "../components/func/snackbar"; -import TibCalendarMaterial from "../components/itembox/tib-calendar-material.vue"; import TItembox from "../components/main/t-itembox.vue"; import ToLoading from "../components/overlay/to-loading.vue"; +import TwcConstellations from "../components/wiki/twc-constellations.vue"; +import TwcMaterials from "../components/wiki/twc-materials.vue"; import { getWikiData } from "../data"; // 路由数据 @@ -191,13 +191,6 @@ onMounted(async () => { font-weight: bold; } -.twc-material-grid { - display: grid; - width: 100%; - grid-template-columns: repeat(3, 1fr); - row-gap: 5px; -} - .twc-text { display: flex; flex-direction: column;