fix: 统一详情页返回上级列表

- 修正管理端插件、工作流与系统详情页返回目标

- 修正用户中心执行记录与助手详情返回目标

- 保留审批页签及关联资源筛选上下文
This commit is contained in:
2026-07-28 12:23:36 +08:00
parent 1404c2ddc5
commit dc35ddc3e4
14 changed files with 144 additions and 11 deletions

View File

@@ -164,7 +164,15 @@ function handleClickHeader(index: number) {
}
function back() {
router.back();
const pluginId = String(route.query.pluginId || '');
if (pluginId) {
void router.replace({
path: '/ai/plugin/tools',
query: { id: pluginId },
});
return;
}
void router.replace({ path: '/ai/plugin' });
}
function updatePluginTool(index: number) {

View File

@@ -53,6 +53,7 @@ const handleEdit = (row: any) => {
query: {
id: row.id,
pageKey: '/ai/plugin',
pluginId: props.pluginId,
},
});
};