mirror of
https://github.com/certd/certd.git
synced 2026-05-14 12:07:32 +08:00
refactor: fix bug
This commit is contained in:
@@ -10,7 +10,7 @@ router.post('/toZip', async function (ctx, next) {
|
|||||||
// const query = request.query
|
// const query = request.query
|
||||||
const body = ctx.request.body
|
const body = ctx.request.body
|
||||||
// const req_queryString = request.queryString
|
// const req_queryString = request.queryString
|
||||||
const { zipPath, fileName } = await exportsService.exportsToZip(body, 'certd-run')
|
const { zipPath, fileName } = await exportsService.exportsToZip(body.options, 'certd-run')
|
||||||
|
|
||||||
console.log('zipFile', zipPath)
|
console.log('zipFile', zipPath)
|
||||||
ctx.set('Content-disposition', 'attachment;filename=' + fileName)
|
ctx.set('Content-disposition', 'attachment;filename=' + fileName)
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ function useTaskForm (context) {
|
|||||||
if (currentPlugins.length <= 0) {
|
if (currentPlugins.length <= 0) {
|
||||||
task.type = undefined
|
task.type = undefined
|
||||||
task._isAdd = true
|
task._isAdd = true
|
||||||
throw new Error('未知插件:' + taskType)
|
// throw new Error('未知插件:' + taskType)
|
||||||
}
|
}
|
||||||
currentPlugin.value = currentPlugins[0]
|
currentPlugin.value = currentPlugins[0]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,6 +111,7 @@
|
|||||||
:validateStatus="deploy.deployName?'':'error'"
|
:validateStatus="deploy.deployName?'':'error'"
|
||||||
placeholder="请输入流程名称"
|
placeholder="请输入流程名称"
|
||||||
@keyup.enter="deployCloseEditMode(deploy)"
|
@keyup.enter="deployCloseEditMode(deploy)"
|
||||||
|
@blur="deployCloseEditMode(deploy)"
|
||||||
>
|
>
|
||||||
<template #suffix>
|
<template #suffix>
|
||||||
<CheckOutlined @click="deployCloseEditMode(deploy)" style="color: rgba(0,0,0,.45)"/>
|
<CheckOutlined @click="deployCloseEditMode(deploy)" style="color: rgba(0,0,0,.45)"/>
|
||||||
@@ -124,7 +125,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
<template #extra>
|
||||||
|
<a-button type="danger">
|
||||||
|
<template #icon><DeleteOutlined /></template>
|
||||||
|
</a-button>
|
||||||
|
</template>
|
||||||
<div class="task-list">
|
<div class="task-list">
|
||||||
<div class="task-item-wrapper" v-for="(task,iindex) of deploy.tasks" :key="iindex">
|
<div class="task-item-wrapper" v-for="(task,iindex) of deploy.tasks" :key="iindex">
|
||||||
<a-button class="task-item" shape="round" @click="taskEdit(deploy,task,index)">
|
<a-button class="task-item" shape="round" @click="taskEdit(deploy,task,index)">
|
||||||
|
|||||||
Reference in New Issue
Block a user