From 37d39dbaf0648748492a9143db0b560bae9cd38b Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 29 Oct 2024 10:47:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E7=AD=96=E7=95=A5=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1048275 --user=王孝刚 【应用】有一个应用设置日志清除策略,提示“引用分段数”字段必填 https://www.tapd.cn/57709429/s/1600113 --- ui/src/views/log/index.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/src/views/log/index.vue b/ui/src/views/log/index.vue index 34dc7cd86..a1a5d8981 100644 --- a/ui/src/views/log/index.vue +++ b/ui/src/views/log/index.vue @@ -428,8 +428,15 @@ function changeDayHandle(val: number | string) { function saveCleanTime() { const data = detail.value data.clean_time = days.value + let obj = { ...data, clean_time: days.value } + if (data.type === 'WORK_FLOW') { + obj = { + work_flow: data.work_flow, + clean_time: days.value + } + } application - .asyncPutApplication(id as string, data, loading) + .asyncPutApplication(id as string, obj, loading) .then(() => { MsgSuccess('保存成功') dialogVisible.value = false