---添加主题功能

This commit is contained in:
2026-03-05 09:56:25 +08:00
parent eb5be030c8
commit f2db3bd7d4
9 changed files with 22 additions and 7 deletions

2
.env
View File

@ -8,7 +8,7 @@ VITE_GLOB_APP_TITLE = 供应链平台
VITE_GLOB_APP_SHORT_NAME = GES_SCM VITE_GLOB_APP_SHORT_NAME = GES_SCM
# 应用名称仅展示在登录页和左上角logo旁其他情况用VITE_GLOB_APP_TITLE # 应用名称仅展示在登录页和左上角logo旁其他情况用VITE_GLOB_APP_TITLE
VITE_SYSTEM_NAME = 供应链平台 VITE_SYSTEM_NAME = 供应链管理平台
# 应用名称简写用于空间不足的界面显示左上角logo旁7个字以内超出变成... # 应用名称简写用于空间不足的界面显示左上角logo旁7个字以内超出变成...
# VITE_SYSTEM_SHORT_NAME = 全代码平台 # VITE_SYSTEM_SHORT_NAME = 全代码平台

View File

@ -19,7 +19,7 @@ VITE_PROXY=[["/api","http://10.10.2.102:9500"]]
# 是否删除Console.log # 是否删除Console.log
VITE_DROP_CONSOLE = false VITE_DROP_CONSOLE = false
VITE_GLOB_APP_TITLE = 供应链平台 VITE_GLOB_APP_TITLE = 供应链管理平台
# 接口地址 # 接口地址
# 如果没有跨域问题,直接在这里配置即可 # 如果没有跨域问题,直接在这里配置即可

View File

@ -75,7 +75,7 @@
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"
}, },
"[less]": { "[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "stylelint.vscode-stylelint"
}, },
"[scss]": { "[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"

View File

@ -15,4 +15,4 @@ VOLUME ["/etc/nginx/nginx.conf", "/usr/share/nginx/html"]
CMD ["nginx","-g","daemon off;"] CMD ["nginx","-g","daemon off;"]
# docker build -t docker.ges.bjgastx.com/itc-web:1.1.3 . # docker build -t docker.ges.bjgastx.com/itc-web:1.1.4 .

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

View File

@ -0,0 +1,14 @@
.lng-theme-primary {
.lng-menu {
.vben-menu-submenu,.vben-menu-submenu-title,.vben-menu{
background: unset !important;
}
}
.vben-layout-sideBar {
background: unset !important;
}
}

View File

@ -1,7 +1,6 @@
<template> <template>
<LayHeader :class="getHeaderClass"> <LayHeader :class="getHeaderClass">
<!-- left start --> <!-- left start -->
<div :class="`${prefixCls}-left`"> <div :class="`${prefixCls}-left`">
<!-- logo --> <!-- logo -->
<AppLogo v-if="getShowHeaderLogo || getIsMobile" :class="`${prefixCls}-logo`" :theme="getHeaderTheme" :style="getLogoWidth" :show-title="!getCollapsed" /> <AppLogo v-if="getShowHeaderLogo || getIsMobile" :class="`${prefixCls}-logo`" :theme="getHeaderTheme" :style="getLogoWidth" :show-title="!getCollapsed" />

View File

@ -120,7 +120,7 @@
// console.log(menus); // console.log(menus);
if (!menus || !menus.length) return null; if (!menus || !menus.length) return null;
return !props.isHorizontal ? ( return !props.isHorizontal ? (
<SimpleMenu {...menuProps} isSplitMenu={unref(getSplit)} items={menus} /> <SimpleMenu {...menuProps} class="lng-menu" isSplitMenu={unref(getSplit)} items={menus} />
) : ( ) : (
<BasicMenu {...(menuProps as any)} isHorizontal={props.isHorizontal} type={unref(getMenuType)} showLogo={unref(getIsShowLogo)} mode={unref(getComputedMenuMode as any)} items={menus} /> <BasicMenu {...(menuProps as any)} isHorizontal={props.isHorizontal} type={unref(getMenuType)} showLogo={unref(getIsShowLogo)} mode={unref(getComputedMenuMode as any)} items={menus} />
); );

View File

@ -73,7 +73,7 @@
{ {
[`${prefixCls}--fixed`]: unref(getMenuFixed), [`${prefixCls}--fixed`]: unref(getMenuFixed),
[`${prefixCls}--mix`]: unref(getIsMixMode) && !unref(getIsMobile) [`${prefixCls}--mix`]: unref(getIsMixMode) && !unref(getIsMobile)
} },
]; ];
}); });
@ -122,6 +122,8 @@
.@{prefix-cls} { .@{prefix-cls} {
z-index: @layout-sider-fixed-z-index; z-index: @layout-sider-fixed-z-index;
background-image: url('/@/assets/images/left_menu.jpg');
background-size: 100% 100%;
&--fixed { &--fixed {
position: fixed; position: fixed;