mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 07:56:38 +08:00
26 lines
509 B
Vue
26 lines
509 B
Vue
<template>
|
|
<router-view :class="[mode]" />
|
|
</template>
|
|
<script setup lang="ts">
|
|
import { computed, onMounted } from 'vue';
|
|
import { useStore } from 'vuex';
|
|
import config from '@/config/style';
|
|
|
|
const store = useStore();
|
|
|
|
const mode = computed(() => {
|
|
return store.getters['setting/mode'];
|
|
});
|
|
|
|
onMounted(() => {
|
|
store.dispatch('setting/changeTheme', { ...config });
|
|
});
|
|
</script>
|
|
<style lang="less">
|
|
@import '@/style/variables.less';
|
|
|
|
#nprogress .bar {
|
|
background: @brand-color !important;
|
|
}
|
|
</style>
|