feat: 新增系统设置页面

This commit is contained in:
duanshuwen
2025-12-07 20:56:20 +08:00
parent 1d8ee0bf64
commit 9379a5d6bc
13 changed files with 127 additions and 8 deletions

View File

@@ -1,11 +1,27 @@
<template>
<div class="bg-white box-border w-full h-full rounded-[16px] flex">
<SystemConfig />
<AccountSetting />
<SystemConfig @change=onChange />
<component :is="currentComponent" />
</div>
</template>
<script setup lang="ts">
import { shallowRef } from 'vue'
import SystemConfig from './components/SystemConfig/index.vue'
import AccountSetting from './components/AccountSetting/index.vue'
import Version from './components/Version/index.vue'
import ChannelSetting from './components/ChannelSetting/index.vue'
import RoomTypeSetting from './components/RoomTypeSetting/index.vue'
const currentComponent = shallowRef(AccountSetting)
const components: any = {
AccountSetting,
ChannelSetting,
RoomTypeSetting,
Version,
}
const onChange = ({ componentName }: any) => {
currentComponent.value = components[componentName]
}
</script>