1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| import { ITheme } from '/@/type/config/theme' import { useLayoutStore } from '/@/store/modules/layout' const theme:() => ITheme[] = () => { const { color } = useLayoutStore().getSetting return [ { tagsActiveColor: '#fff', tagsActiveBg: color.primary, mainBg: '#f0f2f5', sidebarColor: '#fff', sidebarBg: '#001529', sidebarChildrenBg: '#000c17', sidebarActiveColor: '#fff', sidebarActiveBg: color.primary, sidebarActiveBorderRightBG: '#1890ff' }, { tagsActiveColor: '#fff', tagsActiveBg: color.primary, navbarColor: '#fff', navbarBg: '#393D49', mainBg: '#f0f2f5', sidebarColor: '#fff', sidebarBg: '#001529', sidebarChildrenBg: '#000c17', sidebarActiveColor: '#fff', sidebarActiveBg: color.primary, sidebarActiveBorderRightBG: '#1890ff' } ] } export default theme
|