【新增】私有证书

This commit is contained in:
cai
2025-09-03 15:15:59 +08:00
parent efd052a297
commit 954cd1638d
442 changed files with 76787 additions and 7483 deletions

View File

@@ -6,6 +6,7 @@ import {
updateWorkflowExecType,
enableWorkflow,
stopWorkflow,
addWorkflow,
} from '@/api/workflow'
import { getEabList, addEab, deleteEab, updateEab } from '@/api/access'
import { useError } from '@baota/hooks/error'
@@ -134,6 +135,22 @@ export const useWorkflowStore = defineStore('workflow-store', () => {
}
}
/**
* 复制工作流
* @description 复制指定的工作流配置
* @param {WorkflowItem} workflow - 工作流对象
* @returns {Promise<boolean>} 是否复制成功
*/
const copyExistingWorkflow = async (workflow: WorkflowItem) => {
try {
const { message, fetch } = addWorkflow(workflow);
message.value = true
await fetch()
} catch (error) {
handleError(error).default('复制工作流失败')
}
}
/**
* 删除工作流
* @description 删除指定的工作流配置
@@ -251,6 +268,7 @@ export const useWorkflowStore = defineStore('workflow-store', () => {
fetchWorkflowHistory,
deleteExistingWorkflow,
executeExistingWorkflow,
copyExistingWorkflow,
stopExistingWorkflow,
setWorkflowActive,
setWorkflowExecType,