Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
fc66dbf8
提交
fc66dbf8
authored
8月 21, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(versionnotice): 修复:版本通知栏出现后_还能点击菜单的问题
上级
614e47a8
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
59 行增加
和
43 行删除
+59
-43
README.md
README.md
+4
-2
App.vue
src/App.vue
+19
-6
index.scss
src/assets/styles/index.scss
+3
-2
index.vue
src/components/VersionNotice/index.vue
+32
-32
permission.js
src/permission.js
+1
-1
没有找到文件。
README.md
浏览文件 @
fc66dbf8
# 王小卤链路中心
## 网页层级讲解
1.
水印 fixed定位,层级是:
\ No newline at end of file
1.
水印 fixed定位,层级是:9
2.
左侧导航 fixed 定位,层级是 1001
3.
头部导航 fixed 定位,层级是 9
4.
el-popper 层级是 2000
src/App.vue
浏览文件 @
fc66dbf8
<
template
>
<el-watermark
:font=
"
{
color: `rgba(0, 0, 0, .65)`
}"
<el-watermark
:font=
"font"
:content=
"content"
class=
"wm-class"
>
<router-view
/>
</el-watermark>
<back-to-up
/>
</
template
>
...
...
@@ -14,9 +11,27 @@
import
useSettingsStore
from
'@/store/modules/settings'
import
{
handleThemeStyle
}
from
'@/utils/theme'
import
useUserStore
from
'@/store/modules/user'
const
content
=
computed
(()
=>
{
return
useUserStore
().
userInfo
.
nickName
+
' '
+
useUserStore
().
userInfo
.
phone
})
const
isDark
=
computed
(()
=>
{
return
useSettingsStore
().
isDark
})
const
font
=
reactive
({
color
:
'rgba(0, 0, 0, .15)'
,
})
watch
(
isDark
,
()
=>
{
font
.
color
=
isDark
.
value
?
'rgba(255, 255, 255, 0.15)'
:
'rgba(0, 0, 0, .15)'
},
{
immediate
:
true
,
}
)
onMounted
(()
=>
{
nextTick
(()
=>
{
...
...
@@ -34,7 +49,5 @@ onMounted(() => {
left
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
999
;
pointer-events
:
none
;
}
</
style
>
src/assets/styles/index.scss
浏览文件 @
fc66dbf8
...
...
@@ -200,4 +200,6 @@ aside {
.splitpanes--vertical
>
.splitpanes__splitter
{
width
:
2px
;
/* 调整粗细 */
background
:
#ddd
;
/* 可选:修改颜色 */
}
\ No newline at end of file
}
src/components/VersionNotice/index.vue
浏览文件 @
fc66dbf8
<
template
>
<div
class=
"wrap"
>
<div>
<el-dialog
v-model=
"dialogVisible"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
:show-close=
"false"
modal-class=
"version-notice-dialog"
width=
"40%"
@
close=
"handleClose"
draggable
overflow
>
overflow
append-to-body
>
<template
#
header
>
<p
class=
"el-dialog__title"
>
版本更新说明
</p>
<div
class=
"version-tag"
>
V
{{
nowVersion
}}
更新内容
</div>
...
...
@@ -89,43 +91,39 @@ const handleConfirm = () => {
</
script
>
<
style
lang=
"scss"
scoped
>
.wrap
{
::v-deep
(
.el-overlay
)
{
.el-overlay-dialog
{
.el-dialog
{
// 从上到下的渐变蓝色
background
:
linear-gradient
(
to
bottom
,
#3879e0
,
#ffffff
);
// 自定义对话框样式
.el-dialog__header
{
height
:
auto
;
.el-dialog__title
{
color
:
white
;
font-size
:
24px
;
margin
:
0
;
}
<
style
lang=
"scss"
>
.version-notice-dialog
{
.el-overlay-dialog
{
.el-dialog
{
// 从上到下的渐变蓝色
background
:
linear-gradient
(
to
bottom
,
#3879e0
,
#ffffff
);
// 自定义对话框样式
.el-dialog__header
{
height
:
auto
;
.el-dialog__title
{
color
:
white
;
font-size
:
24px
;
margin
:
0
;
}
.el-dialog__headerbtn
.el-dialog__close
{
color
:
white
;
.el-dialog__headerbtn
.el-dialog__close
{
color
:
white
;
&
:hover
{
color
:
#f5f5f5
;
}
}
}
.version-tag
{
margin-top
:
10px
;
color
:
white
;
line-height
:
1
.5
;
&
:hover
{
color
:
#f5f5f5
;
}
}
}
.version-tag
{
margin-top
:
10px
;
color
:
white
;
line-height
:
1
.5
;
}
// 更新内容
.update-content
{
.el-collapse-item__header
{
...
...
@@ -161,4 +159,5 @@ const handleConfirm = () => {
}
}
}
}
</
style
>
\ No newline at end of file
src/permission.js
浏览文件 @
fc66dbf8
...
...
@@ -14,7 +14,7 @@ import useVersionStore from '@/store/modules/version'
NProgress
.
configure
({
showSpinner
:
false
})
// 登录页,物流查询页
const
whiteList
=
[
'/login'
,
'/logistics'
]
export
const
whiteList
=
[
'/login'
,
'/logistics'
]
const
isWhiteList
=
(
path
)
=>
{
return
whiteList
.
some
(
pattern
=>
isPathMatch
(
pattern
,
path
))
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论