mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
feat(optional): 首页显示组件可选
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<t-pool />
|
||||
<t-position />
|
||||
<t-calendar />
|
||||
<t-pool v-show="homeStore.pool.show" />
|
||||
<t-position v-show="homeStore.position.show" />
|
||||
<t-calendar v-show="homeStore.calendar.show" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
@@ -9,4 +9,8 @@
|
||||
import TPool from "../components/t-pool.vue";
|
||||
import TPosition from "../components/t-position.vue";
|
||||
import TCalendar from "../components/t-calendar.vue";
|
||||
// store
|
||||
import useHomeStore from "../store/modules/home";
|
||||
|
||||
const homeStore = useHomeStore();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user