tdesign-vue-next-starter/src/App.vue

26 lines
511 B
Vue
Raw Normal View History

<template>
<router-view :class="[mode]" />
</template>
2022-02-16 19:56:36 +08:00
<script setup lang="ts">
import { computed, onMounted } from 'vue';
2021-12-31 12:16:26 +08:00
import config from '@/config/style';
import { useSettingStore } from '@/store';
const store = useSettingStore();
2022-02-16 19:56:36 +08:00
const mode = computed(() => {
return store.displayMode;
2022-02-16 19:56:36 +08:00
});
2022-02-16 19:56:36 +08:00
onMounted(() => {
store.updateConfig({ ...config });
});
</script>
2022-04-30 23:16:41 +08:00
<style lang="less" scoped>
@import '@/style/variables.less';
#nprogress .bar {
background: var(--td-brand-color) !important;
}
</style>