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

View File

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

View File

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