mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
perf: Workflow allows opening new windows with the Ctrl key.
This commit is contained in:
parent
24b8a7bab1
commit
7b5e5ab9db
|
|
@ -70,11 +70,6 @@
|
|||
<template #icon>
|
||||
<LogoIcon height="32px" />
|
||||
</template>
|
||||
<template #subTitle>
|
||||
<el-text class="color-secondary" size="small">
|
||||
{{ $t('views.application.workflow') }}
|
||||
</el-text>
|
||||
</template>
|
||||
</CardBox>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
|
|
|||
|
|
@ -242,9 +242,11 @@
|
|||
<AppIcon iconName="app-create-chat" class="color-secondary"></AppIcon>
|
||||
{{ $t('views.application.operation.toChat') }}
|
||||
</el-dropdown-item>
|
||||
|
||||
<el-dropdown-item
|
||||
@click.stop="settingApplication(item)"
|
||||
@mousedown.stop="settingApplication($event, item)"
|
||||
v-if="permissionPrecise.edit(item.id)"
|
||||
@click.stop
|
||||
>
|
||||
<AppIcon iconName="app-setting" class="color-secondary"></AppIcon>
|
||||
{{ $t('common.setting') }}
|
||||
|
|
@ -587,9 +589,15 @@ function copyApplication(row: any) {
|
|||
})
|
||||
}
|
||||
|
||||
function settingApplication(row: any) {
|
||||
function settingApplication(event: any, row: any) {
|
||||
if (isWorkFlow(row.type)) {
|
||||
router.push({ path: `/application/workspace/${row.id}/workflow` })
|
||||
if (event?.ctrlKey) {
|
||||
event?.preventDefault()
|
||||
event.stopPropagation()
|
||||
window.open(`/application/workspace/${row.id}/workflow`, '_blank')
|
||||
} else {
|
||||
router.push({ path: `/application/workspace/${row.id}/workflow` })
|
||||
}
|
||||
} else {
|
||||
router.push({ path: `/application/workspace/${row.id}/${row.type}/setting` })
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue