首次提交
This commit is contained in:
12
cdtestplant/src/hooks/themes.ts
Normal file
12
cdtestplant/src/hooks/themes.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { computed } from 'vue'
|
||||
import { useAppStore } from '@/store'
|
||||
|
||||
export default function useThemes() {
|
||||
const appStore = useAppStore()
|
||||
const isDark = computed(() => {
|
||||
return appStore.theme === 'dark'
|
||||
})
|
||||
return {
|
||||
isDark,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user