refactor: 代码微调

This commit is contained in:
Hooray Hu
2024-01-30 01:17:09 +08:00
parent a8b41c7237
commit af1324c2cf
5 changed files with 17 additions and 5 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
position: fixed;
top: 0;
left: 0;
z-index: 10031;
z-index: 2000;
width: 100%;
height: 2px;
background: rgb(var(--ui-primary));
@@ -26,7 +26,7 @@
position: fixed;
top: 11px;
right: 14px;
z-index: 10031;
z-index: 2000;
display: block;
.spinner-icon {
@@ -53,6 +53,7 @@ function tabbarScrollTip() {
title: '温馨提示',
duration: 5000,
closable: true,
zIndex: 2000,
})
}
}
+3 -1
View File
@@ -10,7 +10,9 @@ const route = useRoute()
const { copy, copied } = useClipboard()
watch(copied, (val) => {
val && Message.success('复制成功')
val && Message.success('复制成功', {
zIndex: 2000,
})
})
function open() {
+5
View File
@@ -159,6 +159,11 @@ const enableAppSetting = import.meta.env.VITE_APP_SETTING === 'true'
width: calc(var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width));
box-shadow: -1px 0 0 0 var(--g-border-color), 1px 0 0 0 var(--g-border-color);
transition: width 0.3s, transform 0.3s, box-shadow 0.3s, top 0.3s;
&:has(> .main-sidebar-container.main-sidebar-enter-active),
&:has(> .main-sidebar-container.main-sidebar-leave-active) {
overflow: hidden;
}
}
.sidebar-mask {
+6 -2
View File
@@ -52,11 +52,15 @@ export default function useTabbar() {
}
}
else {
Message.error('当前只有一个标签页,已阻止关闭')
Message.error('当前只有一个标签页,已阻止关闭', {
zIndex: 2000,
})
}
}
else {
Message.error('关闭的页面不存在')
Message.error('关闭的页面不存在', {
zIndex: 2000,
})
}
}