This commit is contained in:
zlwu committed 2026-06-13 19:47:22 +08:00
1 parent e1d6de45a3
commit 5ad07c8cac
616 files changed
+181132 -35125

No files matched your search

@@ -281,7 +281,7 @@
color 0.2s ease;
&:hover {
background: var(--primary-bg, #ecfdf5);
background: var(--primary-bg, #e8f4ee);
}
}
@@ -313,20 +313,7 @@
}
.menu-item-active {
background: var(--primary-bg, #ecfdf5);
}
.menu-item-active::after {
position: absolute;
right: 0;
bottom: 0;
left: 0;
width: 28px;
height: 2px;
margin: auto;
content: '';
background-color: var(--theme-color);
border-radius: 2px;
background: var(--primary-bg, #e8f4ee);
}
@media (width <= 1440px) {
@@ -173,7 +173,7 @@
line-height: 64px;
cursor: pointer;
position: relative;
background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
background: linear-gradient(135deg, #047857 0%, #0d9d6e 100%);
border-bottom: none !important;
.logo {
@@ -176,7 +176,7 @@ $popup-menu-radius: 6px;
.el-sub-menu .el-menu {
margin: 2px 0 6px 10px;
padding: 2px 0 2px 8px !important;
border-left: 2px solid var(--mint-border, #d9e8e2);
border-left: 2px solid var(--mint-border, #c5e0d4);
}
// 菜单折叠
@@ -197,9 +197,9 @@ $popup-menu-radius: 6px;
.el-menu-design {
@include theme-menu-base;
@include menu-active(
var(--mint-primary-dark, #059669),
var(--mint-primary-bg, #ecfdf5),
var(--mint-primary-dark, #059669)
var(--mint-primary-dark, #065f46),
var(--mint-primary-bg, #e8f4ee),
var(--mint-primary-dark, #065f46)
);
@include menu-hover($hover-bg-color);
@@ -210,7 +210,7 @@ $popup-menu-radius: 6px;
// 选中态:以浅底+图标强化为主,文字保持中性色(对齐 fresh-mint demo)
.el-menu-item.is-active span {
color: var(--mint-primary-dark, #059669) !important;
color: var(--mint-primary-dark, #065f46) !important;
font-weight: 600 !important;
}
@@ -240,17 +240,17 @@ $popup-menu-radius: 6px;
}
.el-menu-item.is-active {
background-color: var(--mint-primary-bg, #ecfdf5);
color: var(--mint-primary-dark, #059669) !important;
background-color: var(--mint-primary-bg, #e8f4ee);
color: var(--mint-primary-dark, #065f46) !important;
font-weight: 600;
span {
color: var(--mint-primary-dark, #059669) !important;
color: var(--mint-primary-dark, #065f46) !important;
font-weight: 600 !important;
}
.art-svg-icon {
color: var(--mint-primary-dark, #059669) !important;
color: var(--mint-primary-dark, #065f46) !important;
}
}
@@ -62,15 +62,12 @@
import { storeToRefs } from 'pinia'
import { useWorktabStore } from '@/store/modules/worktab'
import { useMenuStore } from '@/store/modules/menu'
import { useUserStore } from '@/store/modules/user'
import { getFirstSecondLevelMenuPath, isWorkbenchRoute } from '@/utils/navigation/route'
import { formatMenuTitle } from '@/utils/router'
import { useSettingStore } from '@/store/modules/setting'
import { MenuItemType } from '../../others/art-menu-right/index.vue'
import { useCommon } from '@/hooks/core/useCommon'
import { WorkTab } from '@/types'
import type { AppRouteRecord } from '@/types/router'
defineOptions({ name: 'ArtWorkTab' })
@@ -90,7 +87,6 @@
// 基础设置
const { t } = useI18n()
const store = useWorktabStore()
const menuStore = useMenuStore()
const userStore = useUserStore()
const route = useRoute()
const router = useRouter()
@@ -344,13 +340,10 @@
}
}
/** 标签全部关闭后,导航到侧栏第一个二级菜单 */
/** 标签全部关闭后的兜底:跳转默认页并保留一个标签 */
const navigateToDefaultMenuWhenEmpty = () => {
const fromMenu = getFirstSecondLevelMenuPath(menuStore.menuList as AppRouteRecord[])
const home = useCommon().homePath.value
const fallbackPath = fromMenu || (home && !isWorkbenchRoute(home) ? home : '')
if (fallbackPath && route.path !== fallbackPath) {
router.push(fallbackPath)
if (store.opened.length === 0) {
store.navigateToDefaultWithTab()
}
}
@@ -123,7 +123,7 @@
right: -80px;
width: 360px;
height: 360px;
background: rgba(16, 185, 129, 0.18);
background: rgba(4, 120, 87, 0.18);
}
.exception-page__blob--2 {