- import { useDesignStore } from '@/store/modules/designStore'
- export const useDarkThemeHook = () => {
- const designStore = useDesignStore()
- if(designStore.getDarkTheme){
-
- document.body.removeAttribute('arco-theme');
- }else{
-
- document.body.setAttribute('arco-theme', 'dark')
- }
- }
|