Cyrus Zhou 1 год назад
Родитель
Сommit
103bf4d02b
2 измененных файлов с 5 добавлено и 2 удалено
  1. 4 1
      Web/src/layout/navBars/topBar/settings.vue
  2. 1 1
      Web/src/views/mqttx/index.vue

+ 4 - 1
Web/src/layout/navBars/topBar/settings.vue

@@ -458,7 +458,7 @@ const state = reactive({
 });
 
 // 获取布局配置信息
-const getThemeConfig = computed(() => {
+const updateThemeConfig = () => {
 	if (!themeConfig.value.columnsMenuWidth) {
 		themeConfig.value.columnsMenuWidth = 70;
 	}
@@ -468,6 +468,9 @@ const getThemeConfig = computed(() => {
 	if (!themeConfig.value.columnsLogoHeight) {
 		themeConfig.value.columnsLogoHeight = 50;
 	}
+};
+const getThemeConfig = computed(() => {
+	updateThemeConfig();
 	return themeConfig.value;
 });
 // 1、全局主题

+ 1 - 1
Web/src/views/mqttx/index.vue

@@ -131,7 +131,7 @@
 							<el-input v-model="publish.payload" clearable maxlength="64" show-word-limit>
 								<!--<template #prepend>
 								<el-button :icon="Operation" />
-							  </template> -->
+								</template> -->
 								<template #append>
 									<el-select v-model="publish.payload" placeholder="选择指令" style="width: 115px">
 										<el-option label="状态查询" value="55 AA AA AA AA 91 CF" />