feat(setting.ts): TypeScript读取SCSS变量
This commit is contained in:
@@ -3,11 +3,12 @@ import {store} from "@/store";
|
||||
import {SettingState} from "@/store/interface";
|
||||
import defaultSettings from '../../settings'
|
||||
const {showSettings, tagsView, fixedHeader, sidebarLogo} = defaultSettings
|
||||
import variables from '@/styles/element-variables.scss'
|
||||
|
||||
export const useSettingStore = defineStore({
|
||||
id: "setting",
|
||||
state: (): SettingState => ({
|
||||
theme: '',
|
||||
theme: variables.theme,
|
||||
showSettings: showSettings,
|
||||
tagsView: tagsView,
|
||||
fixedHeader: fixedHeader,
|
||||
|
||||
Reference in New Issue
Block a user