Просмотр исходного кода

!1368 update Web/src/layout/navBars/topBar/settings.vue.
Merge pull request !1368 from jacoat/N/A

zuohuaijun 2 лет назад
Родитель
Сommit
043ae795c4
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      Web/src/layout/navBars/topBar/settings.vue

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

@@ -485,7 +485,10 @@ const onColorPickerChange = () => {
 // 2、菜单 / 顶栏
 const onBgColorPickerChange = (bg: string) => {
 	document.documentElement.style.setProperty(`--next-bg-${bg}`, themeConfig.value[bg]);
-	if (bg === 'menuBar') {
+	if(bg === 'menuBarColor'){
+		document.documentElement.style.setProperty(`--el-menu-text-color`, themeConfig.value[bg]);
+	}
+    if (bg === 'menuBar') {
 		document.documentElement.style.setProperty(`--next-bg-menuBar-light-1`, getLightColor(getThemeConfig.value.menuBar, 0.05));
 	}
 	onTopBarGradualChange();