mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 11:24:17 +00:00
fix: 资产创建工单添加校验
This commit is contained in:
@@ -100,6 +100,16 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
cleanFormValue(value) {
|
||||
Object.keys(value.meta).forEach((item, index, arr) => {
|
||||
if (['apply_assets', 'apply_system_users'].includes(item)) {
|
||||
if (value.meta[item].length < 1) {
|
||||
delete value.meta[item]
|
||||
}
|
||||
}
|
||||
})
|
||||
return value
|
||||
},
|
||||
url: '/api/v1/tickets/tickets/?type=apply_asset&action=open',
|
||||
createSuccessNextRoute: {
|
||||
name: 'TicketList'
|
||||
|
||||
Reference in New Issue
Block a user