mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-14 20:53:20 +08:00
♻️ 主题判断上移
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
<TwcMaterials :data="data.materials" />
|
||||
<TwcSkills :data="data.skills" />
|
||||
<TwcConstellations :data="data.constellation" />
|
||||
<v-expansion-panels :theme="vuetifyTheme" class="twc-text-item">
|
||||
<v-expansion-panels class="twc-text-item">
|
||||
<v-expansion-panel>
|
||||
<template #title><span class="twc-text-title">资料</span></template>
|
||||
<template #text>
|
||||
@@ -101,7 +101,6 @@ import TwcConstellations from "../components/wiki/twc-constellations.vue";
|
||||
import TwcMaterials from "../components/wiki/twc-materials.vue";
|
||||
import TwcSkills from "../components/wiki/twc-skills.vue";
|
||||
import { getWikiData } from "../data";
|
||||
import { useAppStore } from "../store/modules/app";
|
||||
|
||||
// 路由数据
|
||||
const id = <string>useRoute().params.id;
|
||||
@@ -111,12 +110,6 @@ const loadingEmpty = ref<boolean>(false);
|
||||
const loadingTitle = ref<string>("正在加载");
|
||||
const loadingSub = ref<string>();
|
||||
|
||||
// 主题
|
||||
const appStore = useAppStore();
|
||||
const vuetifyTheme = computed(() => {
|
||||
return appStore.theme === "dark" ? "dark" : "light";
|
||||
});
|
||||
|
||||
// 数据
|
||||
const data = ref<TGApp.App.Character.WikiItem>();
|
||||
const box = computed(() => {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<TwcMaterials :data="data.materials" />
|
||||
<v-expansion-panels :theme="vuetifyTheme" class="tww-affix">
|
||||
<v-expansion-panels class="tww-affix">
|
||||
<v-expansion-panel expand-icon="mdi-menu-down">
|
||||
<template #title>
|
||||
<span class="tww-text-title">{{ data.affix.Name }}-精炼 {{ select }}</span>
|
||||
@@ -30,7 +30,7 @@
|
||||
</template>
|
||||
</v-expansion-panel>
|
||||
</v-expansion-panels>
|
||||
<v-expansion-panels :theme="vuetifyTheme" class="tww-story">
|
||||
<v-expansion-panels class="tww-story">
|
||||
<v-expansion-panel
|
||||
expand-icon="mdi-menu-down"
|
||||
v-for="(story, index) in data.story"
|
||||
@@ -59,7 +59,6 @@ import TItembox, { TItemBoxData } from "../components/main/t-itembox.vue";
|
||||
import ToLoading from "../components/overlay/to-loading.vue";
|
||||
import TwcMaterials from "../components/wiki/twc-materials.vue";
|
||||
import { getWikiData } from "../data";
|
||||
import { useAppStore } from "../store/modules/app";
|
||||
import { parseHtmlText } from "../utils/toolFunc";
|
||||
|
||||
// 路由数据
|
||||
@@ -70,12 +69,6 @@ const loadingEmpty = ref<boolean>(false);
|
||||
const loadingTitle = ref<string>("正在加载");
|
||||
const loadingSub = ref<string>();
|
||||
|
||||
// 主题
|
||||
const appStore = useAppStore();
|
||||
const vuetifyTheme = computed(() => {
|
||||
return appStore.theme === "dark" ? "dark" : "light";
|
||||
});
|
||||
|
||||
// 数据
|
||||
const data = ref<TGApp.App.Weapon.WikiItem>();
|
||||
const box = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user