add switch component

This commit is contained in:
2025-03-16 21:49:01 +08:00
parent 8f18560a38
commit d7ca474e39
6 changed files with 114 additions and 7 deletions

View File

@@ -1,6 +1,4 @@
<script setup lang="ts">
import { ref } from 'vue';
import LoginCard from './components/LoginCard.vue';
import { useThemeStore } from './stores/theme';
const theme = useThemeStore()
@@ -12,7 +10,9 @@ const theme = useThemeStore()
<header>
<RouterLink to="/user"> Go to User</RouterLink>
<RouterLink to="/login"> Go to Login</RouterLink>
<router-link to="/test"> Go to Test</router-link>
</header>
<div></div>
<main>
<RouterView />