1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

chore: 一些小改动

This commit is contained in:
程序员小墨 2025-02-22 22:37:30 +08:00
parent 907c6dd1c2
commit c47855afee
2 changed files with 5 additions and 5 deletions
frontend/src

@ -1,6 +1,5 @@
<script setup lang="ts">
import MainView from './views/MainView.vue'
import { ref } from 'vue'
import { ElConfigProvider } from 'element-plus'
import { useThemeConfigStore } from './stores/themeConfig';
@ -11,7 +10,8 @@ const themeConfigStore = useThemeConfigStore()
{{ themeConfigStore.elConfig.size }}
{{ themeConfigStore.themeConfig.themeMode }}
<el-config-provider :size="themeConfigStore.elConfig.size" :z-index="themeConfigStore.elConfig.zIndex"
:button="{ autoInsertSpace: true }" :locale="locale">
:button="{ autoInsertSpace: true }">
<!-- :locale="locale" -->
<MainView />
</el-config-provider>
</template>

@ -16,9 +16,9 @@ export const useThemeConfigStore = defineStore('themeConfig', () => {
})
const themeConfig = ref<{
themeMode: ThemeMode,
// updateThemeMode: Function,
getCurrentThemeMode: Function,
themeMode: ThemeMode;
// updateThemeMode: Function;
getCurrentThemeMode: Function;
}>({
themeMode: 'auto',
// updateThemeMode: (themeMode: ThemeMode) => {