fix(router): check system permissions against target project
This commit is contained in:
@@ -193,10 +193,12 @@
|
||||
|
||||
<el-main class="layout-main">
|
||||
<div class="content-wrapper">
|
||||
<router-view v-slot="{ Component }">
|
||||
<div class="ctms-route-shell">
|
||||
<component v-if="Component" :is="Component" />
|
||||
</div>
|
||||
<router-view v-slot="{ Component, route: currentRoute }">
|
||||
<transition name="fade-transform" mode="out-in">
|
||||
<div :key="currentRoute.fullPath" class="ctms-route-shell">
|
||||
<component v-if="Component" :is="Component" />
|
||||
</div>
|
||||
</transition>
|
||||
</router-view>
|
||||
</div>
|
||||
</el-main>
|
||||
@@ -471,15 +473,15 @@ const onCommand = (cmd: string) => {
|
||||
background-color: #2c3e50;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
|
||||
box-shadow: 4px 0 18px rgba(15, 23, 42, 0.12);
|
||||
z-index: 10;
|
||||
border-right: none;
|
||||
transition: width 0.18s ease;
|
||||
transition: width 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.aside-menu {
|
||||
transition: padding 0.18s ease;
|
||||
transition: padding 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.layout-aside.collapsed .logo-text {
|
||||
@@ -503,7 +505,7 @@ const onCommand = (cmd: string) => {
|
||||
align-items: center;
|
||||
padding: 0 14px;
|
||||
background-color: transparent;
|
||||
transition: padding 0.18s ease;
|
||||
transition: padding 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.logo-icon {
|
||||
@@ -512,7 +514,7 @@ const onCommand = (cmd: string) => {
|
||||
background: #ffffff;
|
||||
border-radius: 8px;
|
||||
margin-right: 12px;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 0 8px 18px rgba(15, 23, 42, 0.26);
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
@@ -520,7 +522,7 @@ const onCommand = (cmd: string) => {
|
||||
font-size: 18px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.5px;
|
||||
transition: opacity 0.18s ease, transform 0.18s ease;
|
||||
transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.aside-menu {
|
||||
@@ -551,18 +553,45 @@ const onCommand = (cmd: string) => {
|
||||
margin: 1px 8px;
|
||||
border-radius: 7px;
|
||||
color: #f1f5f9 !important;
|
||||
transition: var(--ctms-transition);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transform: translateX(0);
|
||||
transition:
|
||||
background-color 180ms ease,
|
||||
color 180ms ease,
|
||||
transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
|
||||
box-shadow 180ms ease;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-menu-item:hover) {
|
||||
color: #ffffff !important;
|
||||
background-color: rgba(255, 255, 255, 0.08) !important;
|
||||
background-color: rgba(255, 255, 255, 0.09) !important;
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-menu-item:active) {
|
||||
transform: translateX(1px) scale(0.985);
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-menu-item .el-icon),
|
||||
.layout-aside :deep(.el-sub-menu__title .el-icon) {
|
||||
transition:
|
||||
color 180ms ease,
|
||||
opacity 180ms ease,
|
||||
transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-menu-item.is-active) {
|
||||
color: #ffffff !important;
|
||||
background-color: rgba(255, 255, 255, 0.12) !important;
|
||||
box-shadow: none;
|
||||
background-color: rgba(255, 255, 255, 0.14) !important;
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
0 8px 22px rgba(15, 23, 42, 0.14);
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-menu-item.is-active .el-icon) {
|
||||
transform: translateX(1px) scale(1.04);
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-menu-item.is-active::before) {
|
||||
@@ -574,6 +603,22 @@ const onCommand = (cmd: string) => {
|
||||
width: 3px;
|
||||
background-color: #94b8d1;
|
||||
border-radius: 0 4px 4px 0;
|
||||
transform: scaleY(1);
|
||||
transform-origin: center;
|
||||
transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease;
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-menu-item:not(.is-active)::before) {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 8px;
|
||||
bottom: 8px;
|
||||
width: 3px;
|
||||
background-color: #94b8d1;
|
||||
border-radius: 0 4px 4px 0;
|
||||
opacity: 0;
|
||||
transform: scaleY(0.35);
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-sub-menu__title) {
|
||||
@@ -582,37 +627,69 @@ const onCommand = (cmd: string) => {
|
||||
border-radius: 7px;
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transform: translateX(0);
|
||||
transition:
|
||||
background-color 180ms ease,
|
||||
color 180ms ease,
|
||||
transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
|
||||
box-shadow 180ms ease;
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-sub-menu__title:hover) {
|
||||
color: #ffffff !important;
|
||||
background-color: rgba(255, 255, 255, 0.08) !important;
|
||||
background-color: rgba(255, 255, 255, 0.09) !important;
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-sub-menu__title:active) {
|
||||
transform: translateX(1px) scale(0.985);
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-sub-menu.is-active .el-sub-menu__title) {
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-sub-menu.is-active .el-sub-menu__title .el-icon) {
|
||||
transform: translateX(1px) scale(1.04);
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-sub-menu__icon-arrow) {
|
||||
transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-menu--inline) {
|
||||
background-color: transparent !important;
|
||||
margin: 0 !important;
|
||||
margin: 2px 0 4px !important;
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-menu--inline .el-menu-item) {
|
||||
padding-left: 40px !important;
|
||||
margin: 0 10px;
|
||||
margin: 1px 10px;
|
||||
color: rgba(241, 245, 249, 0.88) !important;
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-menu--inline .el-menu-item:hover) {
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-menu--inline .el-menu-item.is-active) {
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.layout-header {
|
||||
background-color: #ffffff;
|
||||
background: rgba(255, 255, 255, 0.82);
|
||||
backdrop-filter: blur(12px) saturate(160%);
|
||||
-webkit-backdrop-filter: blur(12px) saturate(160%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 10px;
|
||||
box-shadow: none;
|
||||
padding: 0 16px;
|
||||
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.03);
|
||||
height: 52px !important;
|
||||
z-index: 9;
|
||||
border-bottom: 1px solid #f1f5f9;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.main-container {
|
||||
@@ -622,10 +699,10 @@ const onCommand = (cmd: string) => {
|
||||
.header-breadcrumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
gap: 4px;
|
||||
color: var(--ctms-text-regular);
|
||||
font-size: 13px;
|
||||
margin-left: 14px;
|
||||
margin-left: 16px;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
@@ -677,12 +754,37 @@ const onCommand = (cmd: string) => {
|
||||
}
|
||||
|
||||
.collapse-btn {
|
||||
border: 1px solid var(--ctms-border-color);
|
||||
color: var(--ctms-text-regular);
|
||||
border: 1px solid rgba(0, 0, 0, 0.08);
|
||||
color: var(--ctms-text-secondary);
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 8px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.collapse-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border-color: rgba(0, 0, 0, 0.14);
|
||||
color: var(--ctms-text-main);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.collapse-btn:active {
|
||||
transform: scale(0.95);
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.collapse-icon {
|
||||
font-size: 18px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
|
||||
@@ -695,37 +797,42 @@ const onCommand = (cmd: string) => {
|
||||
.dropdown-trigger.compact {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 4px 12px;
|
||||
border-radius: 999px;
|
||||
background: #ffffff;
|
||||
border: 1px solid var(--ctms-border-color);
|
||||
padding: 3px 14px 3px 4px;
|
||||
border-radius: 10px;
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
border: 1px solid rgba(0, 0, 0, 0.07);
|
||||
color: var(--ctms-text-regular);
|
||||
transition: var(--ctms-transition);
|
||||
height: 36px;
|
||||
transition: all 0.2s ease;
|
||||
height: 34px;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.dropdown-trigger.compact:hover {
|
||||
background: var(--ctms-bg-muted);
|
||||
border-color: var(--ctms-border-color-hover);
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border-color: rgba(0, 0, 0, 0.14);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.user-avatar-comp {
|
||||
color: var(--ctms-primary) !important;
|
||||
background-color: transparent !important;
|
||||
border-radius: 10px !important;
|
||||
color: #ffffff !important;
|
||||
background-color: var(--ctms-primary) !important;
|
||||
border-radius: 7px !important;
|
||||
font-weight: 700;
|
||||
flex-shrink: 0;
|
||||
font-size: 14px;
|
||||
font-size: 13px;
|
||||
width: 26px !important;
|
||||
height: 26px !important;
|
||||
}
|
||||
|
||||
.username {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin: 0 10px 0 8px;
|
||||
max-width: 150px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
margin: 0 2px;
|
||||
max-width: 140px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--ctms-text-main);
|
||||
}
|
||||
|
||||
.layout-main {
|
||||
@@ -743,22 +850,52 @@ const onCommand = (cmd: string) => {
|
||||
|
||||
.ctms-route-shell {
|
||||
min-height: 100%;
|
||||
transform-origin: top center;
|
||||
}
|
||||
|
||||
/* 过渡动画 */
|
||||
.fade-transform-enter-active,
|
||||
.fade-transform-leave-active {
|
||||
transition: all 0.3s;
|
||||
transition:
|
||||
opacity 180ms ease,
|
||||
transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
|
||||
filter 180ms ease;
|
||||
}
|
||||
|
||||
.fade-transform-enter-from {
|
||||
opacity: 0;
|
||||
transform: translateX(-15px);
|
||||
filter: blur(3px);
|
||||
transform: translateY(8px) scale(0.995);
|
||||
}
|
||||
|
||||
.fade-transform-leave-to {
|
||||
opacity: 0;
|
||||
transform: translateX(15px);
|
||||
filter: blur(2px);
|
||||
transform: translateY(-4px) scale(0.998);
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.layout-aside,
|
||||
.aside-menu,
|
||||
.aside-logo,
|
||||
.logo-text,
|
||||
.layout-aside :deep(.el-menu-item),
|
||||
.layout-aside :deep(.el-sub-menu__title),
|
||||
.layout-aside :deep(.el-menu-item .el-icon),
|
||||
.layout-aside :deep(.el-sub-menu__title .el-icon),
|
||||
.layout-aside :deep(.el-sub-menu__icon-arrow),
|
||||
.fade-transform-enter-active,
|
||||
.fade-transform-leave-active {
|
||||
transition-duration: 1ms !important;
|
||||
}
|
||||
|
||||
.layout-aside :deep(.el-menu-item:hover),
|
||||
.layout-aside :deep(.el-sub-menu__title:hover),
|
||||
.fade-transform-enter-from,
|
||||
.fade-transform-leave-to {
|
||||
filter: none;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
.breadcrumb-dropdown-menu {
|
||||
min-width: 200px;
|
||||
|
||||
Reference in New Issue
Block a user