theme change is ready

This commit is contained in:
RockYang
2024-04-27 13:13:28 +08:00
parent 5e0be4d10e
commit b354b88876
20 changed files with 162 additions and 44 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="sidebar dark">
<div :class="'sidebar '+theme">
<div class="logo">
<el-image :src="logo"/>
<span class="text" v-show="!sidebar.collapse">{{ title }}</span>
@@ -69,6 +69,15 @@ httpGet('/api/admin/config/get?key=system').then(res => {
ElMessage.error("加载系统配置失败: " + e.message)
})
// eslint-disable-next-line no-undef
const props = defineProps({
theme: String,
});
const theme = computed(() => {
return props.theme
})
const items = [
{
icon: 'home',