Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

350 B
Raw Blame
<template>
	<bt-config-provider>
		<router-view></router-view>
	</bt-config-provider>
</template>

<script lang="ts" setup>
import { useThemeStore } from './store'

const themeStore = useThemeStore()

// 监听主题变化并应用到文档
watch(
	() => themeStore.theme,
	() => {
		themeStore.changeTheme()
	},
	{
		immediate: true,
	}
)
</script>