初始化

This commit is contained in:
梁泽军
2025-03-07 10:31:57 +08:00
commit dbf485e0d5
552 changed files with 81015 additions and 0 deletions

18
src/mixins/theme.ts Normal file
View File

@@ -0,0 +1,18 @@
import { useThemeStore } from '@/stores/theme'
import { useAppStore } from '@/stores/app'
export default {
computed: {
$theme() {
const themeStore = useThemeStore()
const appStore = useAppStore()
return {
primaryColor: themeStore.primaryColor,
pageStyle: themeStore.vars,
navColor: themeStore.navColor,
navBgColor: themeStore.navBgColor,
title: appStore.getWebsiteConfig.shop_name
}
}
}
}