mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
♻️ 主题判断上移
This commit is contained in:
@@ -631,6 +631,7 @@ async function setAchiDB(achievement: TGApp.Sqlite.Achievement.SingleTable): Pro
|
||||
height: 80px;
|
||||
border: 1px solid var(--common-shadow-2);
|
||||
border-radius: 10px 50px 50px 10px;
|
||||
background-color: var(--box-bg-1);
|
||||
background-position: right;
|
||||
background-repeat: no-repeat;
|
||||
cursor: pointer;
|
||||
|
||||
@@ -79,7 +79,6 @@
|
||||
label="首页显示组件"
|
||||
:multiple="true"
|
||||
:chips="true"
|
||||
:theme="vuetifyTheme"
|
||||
/>
|
||||
<template #append>
|
||||
<v-btn class="config-btn" @click="submitHome"> 确定</v-btn>
|
||||
@@ -210,9 +209,6 @@ const userInfo = computed(() => {
|
||||
avatar: "/source/UI/lumine.webp",
|
||||
};
|
||||
});
|
||||
const vuetifyTheme = computed(() => {
|
||||
return appStore.theme === "dark" ? "dark" : "light";
|
||||
});
|
||||
|
||||
// load version
|
||||
onMounted(async () => {
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
v-model="curGameLabel"
|
||||
class="post-switch-item"
|
||||
:items="gameItem"
|
||||
:theme="vuetifyTheme"
|
||||
variant="outlined"
|
||||
label="游戏"
|
||||
/>
|
||||
@@ -14,7 +13,6 @@
|
||||
v-model="curForumLabel"
|
||||
class="post-switch-item"
|
||||
:items="forumItem"
|
||||
:theme="vuetifyTheme"
|
||||
variant="outlined"
|
||||
label="频道"
|
||||
/>
|
||||
@@ -22,7 +20,6 @@
|
||||
v-model="curSortLabel"
|
||||
class="post-switch-item"
|
||||
:items="sortItem"
|
||||
:theme="vuetifyTheme"
|
||||
variant="outlined"
|
||||
label="排序"
|
||||
/>
|
||||
@@ -196,11 +193,6 @@ const gameList = {
|
||||
大别野: 5,
|
||||
};
|
||||
|
||||
// 主题
|
||||
const vuetifyTheme = computed(() => {
|
||||
return appStore.theme === "dark" ? "dark" : "light";
|
||||
});
|
||||
|
||||
// 渲染参数
|
||||
const curForumLabel = ref<string>("酒馆");
|
||||
const forumItem = ref<string[]>(["酒馆", "攻略", "同人图", "COS", "硬核"]);
|
||||
|
||||
Reference in New Issue
Block a user