From 0c95adbd2f52f56b3219c0ed0da6f1ffa2eb8e43 Mon Sep 17 00:00:00 2001 From: ap <951984189@qq.com> Date: Fri, 25 Feb 2022 09:08:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cool/modules/task/views/task.vue | 12 ++++++------ src/cool/modules/upload/components/space/index.vue | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/cool/modules/task/views/task.vue b/src/cool/modules/task/views/task.vue index f63da7f..d92355e 100644 --- a/src/cool/modules/task/views/task.vue +++ b/src/cool/modules/task/views/task.vue @@ -387,8 +387,8 @@ export default defineComponent({ info.every /= 1000; } - if (!info.limit) { - info.limit = undefined; + if (!info.repeatCount) { + info.repeatCount = undefined; } const { setForm } = refs.value.form.open({ @@ -431,7 +431,7 @@ export default defineComponent({ on: { change: (v: number) => { if (v == 0) { - setForm("limit", undefined); + setForm("repeatCount", undefined); setForm("every", undefined); } else { setForm("cron", undefined); @@ -456,7 +456,7 @@ export default defineComponent({ }, { label: "次数", - prop: "limit", + prop: "repeatCount", hidden: ({ scope }: any) => { return scope.taskType == 0; }, @@ -554,8 +554,8 @@ export default defineComponent({ }, on: { submit: (data: any, { close, done }: any) => { - if (!data.limit) { - data.limit = null; + if (!data.repeatCount) { + data.repeatCount = null; } service.task.info[id ? "update" : "add"]({ diff --git a/src/cool/modules/upload/components/space/index.vue b/src/cool/modules/upload/components/space/index.vue index 5ac8beb..b4fd05b 100644 --- a/src/cool/modules/upload/components/space/index.vue +++ b/src/cool/modules/upload/components/space/index.vue @@ -43,6 +43,7 @@ :on-error="onError" :on-progress="onProgress" :before-upload="beforeUpload" + multiple > 点击上传