@@ -17,37 +15,8 @@
-
diff --git a/ui/src/layout/layout-template/index.scss b/ui/src/layout/layout-template/index.scss
new file mode 100644
index 000000000..56bff011c
--- /dev/null
+++ b/ui/src/layout/layout-template/index.scss
@@ -0,0 +1,23 @@
+.app-layout {
+ background-color: var(--app-layout-bg-color);
+ height: 100%;
+}
+
+.app-main {
+ position: relative;
+ height: 100%;
+ padding: var(--app-header-height) 0 0 !important;
+ box-sizing: border-box;
+ overflow: auto;
+}
+
+.sidebar-container {
+ box-sizing: border-box;
+ transition: width 0.28s;
+ width: var(--sidebar-width);
+ min-width: var(--sidebar-width);
+ background-color: var(--sidebar-bg-color);
+}
+.view-container {
+ width: calc(100% - var(--sidebar-width));
+}
diff --git a/ui/src/views/theme/index.vue b/ui/src/views/theme/index.vue
index a92a4c6ba..106935110 100644
--- a/ui/src/views/theme/index.vue
+++ b/ui/src/views/theme/index.vue
@@ -102,6 +102,8 @@ import { ref, reactive, watch } from 'vue'
import type { FormInstance, FormRules } from 'element-plus'
import LoginPreview from './LoginPreview.vue'
import { useElementPlusTheme } from 'use-element-plus-theme'
+import useStore from '@/stores'
+const { common } = useStore()
const themeList = [
{
@@ -161,7 +163,7 @@ watch(
() => themeForm.value.theme,
(val) => {
if (val) {
- console.log(val)
+ common.setTheme(val)
}
}
)