refactor: fix bug

master
xiaojunnuo 2021-02-05 18:13:24 +08:00
parent 9f434b0968
commit 560519894c
3 changed files with 8 additions and 3 deletions

View File

@ -10,7 +10,7 @@ router.post('/toZip', async function (ctx, next) {
// const query = request.query
const body = ctx.request.body
// 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)
ctx.set('Content-disposition', 'attachment;filename=' + fileName)

View File

@ -155,7 +155,7 @@ function useTaskForm (context) {
if (currentPlugins.length <= 0) {
task.type = undefined
task._isAdd = true
throw new Error('未知插件:' + taskType)
// throw new Error('' + taskType)
}
currentPlugin.value = currentPlugins[0]
}

View File

@ -111,6 +111,7 @@
:validateStatus="deploy.deployName?'':'error'"
placeholder="请输入流程名称"
@keyup.enter="deployCloseEditMode(deploy)"
@blur="deployCloseEditMode(deploy)"
>
<template #suffix>
<CheckOutlined @click="deployCloseEditMode(deploy)" style="color: rgba(0,0,0,.45)"/>
@ -124,7 +125,11 @@
</div>
</template>
<template #extra>
<a-button type="danger">
<template #icon><DeleteOutlined /></template>
</a-button>
</template>
<div class="task-list">
<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)">