1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
Files
business-center-vite/frontend/src/views/MainView.vue

24 lines
799 B
Vue

<template>
<RouterView />
<DarkSwitch />
<div class="wrapper">
<ElButton @click="() => themeConfigStore.elConfig.size = 'small'">哈哈哈</ElButton>
<ElButton @click="() => themeConfigStore.elConfig.size = 'default'">哈哈哈</ElButton>
<ElButton @click="() => themeConfigStore.elConfig.size = 'large'">哈哈哈</ElButton>
<nav>
<!-- <RouterLink to="/">Home</RouterLink> -->
<!-- <RouterLink to="/about">About</RouterLink> -->
</nav>
</div>
</template>
<script setup lang="ts">
import DarkSwitch from '@/components/DarkSwitch/DarkSwitch.vue';
import { useThemeConfigStore } from '@/stores/themeConfig';
import { ElButton } from 'element-plus';
import { RouterLink, RouterView } from 'vue-router'
const themeConfigStore = useThemeConfigStore()
</script>