feat(component): 添加后退按钮组件并应用到多个页面

- 新增 BackButton 组件,用于实现后退功能
- 在 agent、knowledge、intelligent-agent 等模块的多个页面中集成后退按钮
- 优化后退按钮的样式和交互效果
This commit is contained in:
陈昱达
2025-05-08 18:20:02 +08:00
parent 5d69a36f7d
commit 4cfe4d42eb
7 changed files with 94 additions and 17 deletions

View File

@@ -1,6 +1,14 @@
<template>
<div class=" render-container">
<div class="clearfix flex align-items-c justify-content-b ">
<div class="hover-back mr5">
<el-icon
class="el-icon-arrow-left"
style="font-size: 24px;cursor: pointer"
@click.native="$router.history.go(-1)"
></el-icon>
</div>
<img
:src="knowledgeImage ? knowledgeImage : knowledgePng_1"
class="header-icon"
@@ -990,4 +998,12 @@ export default {
font-style: normal;
}
}
.hover-back {
padding: 10px 5px;
&:hover {
background: rgba(87, 104, 161, 0.2);
border-radius: 5px;
}
}
</style>