Skip to content

Commit 863a362

Browse files
committed
代码微调
1 parent d89d67e commit 863a362

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

src/assets/styles/nprogress.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
position: fixed;
66
top: 0;
77
left: 0;
8-
z-index: 10031;
8+
z-index: 2000;
99
width: 100%;
1010
height: 2px;
1111
background: rgb(var(--ui-primary));
@@ -26,7 +26,7 @@
2626
position: fixed;
2727
top: 11px;
2828
right: 14px;
29-
z-index: 10031;
29+
z-index: 2000;
3030
display: block;
3131

3232
.spinner-icon {

src/layouts/components/Topbar/Tabbar/index.vue

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function tabbarScrollTip() {
5353
title: '温馨提示',
5454
duration: 5000,
5555
closable: true,
56+
zIndex: 2000,
5657
})
5758
}
5859
}

src/layouts/components/views/link.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ const route = useRoute()
1010
1111
const { copy, copied } = useClipboard()
1212
watch(copied, (val) => {
13-
val && Message.success('复制成功')
13+
val && Message.success('复制成功', {
14+
zIndex: 2000,
15+
})
1416
})
1517
1618
function open() {

src/layouts/index.vue

+5
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ const enableAppSetting = import.meta.env.VITE_APP_SETTING === 'true'
161161
width: calc(var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width));
162162
box-shadow: -1px 0 0 0 var(--g-border-color), 1px 0 0 0 var(--g-border-color);
163163
transition: width 0.3s, transform 0.3s, box-shadow 0.3s, top 0.3s;
164+
165+
&:has(> .main-sidebar-container.main-sidebar-enter-active),
166+
&:has(> .main-sidebar-container.main-sidebar-leave-active) {
167+
overflow: hidden;
168+
}
164169
}
165170
166171
.sidebar-mask {

src/utils/composables/useTabbar.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,15 @@ export default function useTabbar() {
5252
}
5353
}
5454
else {
55-
Message.error('当前只有一个标签页,已阻止关闭')
55+
Message.error('当前只有一个标签页,已阻止关闭', {
56+
zIndex: 2000,
57+
})
5658
}
5759
}
5860
else {
59-
Message.error('关闭的页面不存在')
61+
Message.error('关闭的页面不存在', {
62+
zIndex: 2000,
63+
})
6064
}
6165
}
6266

0 commit comments

Comments
 (0)