Skip to content

Commit

Permalink
fix: 修复保存清除策略报错的缺陷
Browse files Browse the repository at this point in the history
--bug=1048275 --user=王孝刚 【应用】有一个应用设置日志清除策略,提示“引用分段数”字段必填 https://www.tapd.cn/57709429/s/1600113
  • Loading branch information
wxg0103 committed Oct 29, 2024
1 parent c39c943 commit 37d39db
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ui/src/views/log/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37d39db

Please sign in to comment.