Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
450d3027
提交
450d3027
authored
3月 28, 2026
作者:
付康
浏览文件
操作
浏览文件
下载
差异文件
合并分支 'fk-dev' 到 'pre'
Fk dev 查看合并请求
!265
上级
277bffd2
6a89f984
流水线
#169
已通过 于阶段
in 4 分 42 秒
变更
1
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
22 行增加
和
23 行删除
+22
-23
index.vue
src/components/base/moduleHeader/index.vue
+22
-23
没有找到文件。
src/components/base/moduleHeader/index.vue
浏览文件 @
450d3027
...
...
@@ -33,7 +33,7 @@
<div
class=
"menu-box"
v-show=
"isShowMenu"
@
mouseenter=
"handleHoverMenu(true)"
@
mouseleave=
"handleHoverMenu(false)"
>
<div
class=
"menu-content"
>
<div
class=
"menu-item"
v-for=
"(item, index) in menuList"
:key=
"index"
@
click=
"handleToModule(item)"
>
<div
class=
"menu-item"
v-for=
"(item, index) in menuList"
:key=
"index"
@
click=
"handleToModule(item
, 1
)"
>
<div
class=
"icon"
>
<img
:src=
"item.icon"
alt=
""
/>
</div>
...
...
@@ -44,7 +44,7 @@
<div
class=
"tool-box"
v-show=
"isShowTool"
@
mouseenter=
"handleHoverTool(true)"
@
mouseleave=
"handleHoverTool(false)"
>
<div
class=
"menu-content"
>
<div
class=
"menu-item"
v-for=
"(item, index) in toolList"
:key=
"index"
@
click=
"handleToModule(item)"
>
<div
class=
"menu-item"
v-for=
"(item, index) in toolList"
:key=
"index"
@
click=
"handleToModule(item
, 2
)"
>
<div
class=
"icon"
>
<img
:src=
"item.icon"
alt=
""
/>
</div>
...
...
@@ -57,7 +57,7 @@
</
template
>
<
script
setup
>
import
{
ref
,
computed
,
onMounted
,
watchEffect
}
from
"vue"
;
import
{
ref
,
computed
,
onMounted
,
watchEffect
,
onUnmounted
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
getPersonType
}
from
"@/api/common/index"
;
...
...
@@ -226,30 +226,25 @@ const toolList = ref([
{
title
:
"智能写报"
,
icon
:
Tool2
,
path
:
"/writting"
path
:
"/writting
Asstaint
"
},
])
const
handleToModule
=
item
=>
{
// const curRoute = router.resolve({
// path: item.path
// });
// window.open(curRoute.href, "_blank");
router
.
push
({
path
:
item
.
path
})
};
const
searchText
=
ref
(
""
);
const
handleToModule
=
(
item
,
index
)
=>
{
homeActiveTitleIndex
.
value
=
index
if
(
index
===
1
)
{
router
.
push
({
path
:
item
.
path
})
}
else
{
const
curRoute
=
router
.
resolve
({
path
:
item
.
path
});
window
.
open
(
curRoute
.
href
,
"_blank"
);
}
const
handleSearch
=
()
=>
{
const
curRoute
=
router
.
resolve
({
path
:
"/searchResults"
,
query
:
{
searchText
:
searchText
.
value
}
});
window
.
open
(
curRoute
.
href
,
"_blank"
);
isShowMenu
.
value
=
false
isShowTool
.
value
=
false
};
const
handleClickTitle
=
(
item
,
index
)
=>
{
...
...
@@ -276,6 +271,10 @@ onMounted(() => {
handleGetPersonType
();
homeActiveTitleIndex
.
value
=
Number
(
window
.
localStorage
.
getItem
(
'homeActiveTitleIndex'
))
});
onUnmounted
(()
=>
{
window
.
localStorage
.
removeItem
(
'homeActiveTitleIndex'
)
})
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论