This is an automated email from the ASF dual-hosted git repository.
kerwin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new fb67b085a3 support to open a new page after clicking the link (#13265)
fb67b085a3 is described below
commit fb67b085a352c6d8596e5b9d4b33ef370b604dc5
Author: calvin <[email protected]>
AuthorDate: Fri Dec 23 10:48:21 2022 +0800
support to open a new page after clicking the link (#13265)
---
dolphinscheduler-ui/src/views/projects/task/instance/use-table.ts | 6 ++++--
.../src/views/projects/workflow/definition/use-table.ts | 6 ++++--
.../src/views/projects/workflow/instance/use-table.ts | 6 ++++--
3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/dolphinscheduler-ui/src/views/projects/task/instance/use-table.ts
b/dolphinscheduler-ui/src/views/projects/task/instance/use-table.ts
index e614f6663f..553feb1282 100644
--- a/dolphinscheduler-ui/src/views/projects/task/instance/use-table.ts
+++ b/dolphinscheduler-ui/src/views/projects/task/instance/use-table.ts
@@ -114,12 +114,14 @@ export function useTable() {
h(
ButtonLink,
{
- onClick: () =>
- void router.push({
+ onClick: () => {
+ let routeUrl = router.resolve({
name: 'workflow-instance-detail',
params: { id: row.processInstanceId },
query: { code: projectCode }
})
+ window.open(routeUrl.href, '_blank')
+ }
},
{
default: () =>
diff --git
a/dolphinscheduler-ui/src/views/projects/workflow/definition/use-table.ts
b/dolphinscheduler-ui/src/views/projects/workflow/definition/use-table.ts
index 9f19e23ffa..1de86d286c 100644
--- a/dolphinscheduler-ui/src/views/projects/workflow/definition/use-table.ts
+++ b/dolphinscheduler-ui/src/views/projects/workflow/definition/use-table.ts
@@ -102,11 +102,13 @@ export function useTable() {
h(
ButtonLink,
{
- onClick: () =>
- void router.push({
+ onClick: () => {
+ let routeUrl = router.resolve({
name: 'workflow-definition-detail',
params: { code: row.code }
})
+ window.open(routeUrl.href, '_blank')
+ }
},
{
default: () =>
diff --git
a/dolphinscheduler-ui/src/views/projects/workflow/instance/use-table.ts
b/dolphinscheduler-ui/src/views/projects/workflow/instance/use-table.ts
index 68e487e239..73f8b0e103 100644
--- a/dolphinscheduler-ui/src/views/projects/workflow/instance/use-table.ts
+++ b/dolphinscheduler-ui/src/views/projects/workflow/instance/use-table.ts
@@ -93,12 +93,14 @@ export function useTable() {
h(
ButtonLink,
{
- onClick: () =>
- void router.push({
+ onClick: () => {
+ let routeUrl = router.resolve({
name: 'workflow-instance-detail',
params: { id: row.id },
query: { code: row.processDefinitionCode }
})
+ window.open(routeUrl.href, '_blank')
+ }
},
{
default: () =>