diff --git a/framework/sdk-parent/frontend/src/components/head/ProjectSearchList.vue b/framework/sdk-parent/frontend/src/components/head/ProjectSearchList.vue index 72218ee78e..e54107223d 100644 --- a/framework/sdk-parent/frontend/src/components/head/ProjectSearchList.vue +++ b/framework/sdk-parent/frontend/src/components/head/ProjectSearchList.vue @@ -193,6 +193,17 @@ export default { // 去掉末尾 & return path.substring(0, path.length - 1); } + if (path.startsWith('/api/definition')) { + this.$route.params.dataSelectRange = ''; + this.$route.params.projectId = getCurrentProjectID(); + return '/api/definition'; + } + if (path.startsWith('/api/automation')) { + this.$route.params.projectId = getCurrentProjectID(); + this.$route.params.dataSelectRange = ''; + return '/api/automation'; + } + return path; }, change(projectId) {