chore: 一些小改动
This commit is contained in:
parent
907c6dd1c2
commit
c47855afee
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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user