This commit is contained in:
parent
2a637a31cf
commit
79a1d261d8
|
|
@ -106,7 +106,10 @@ const data: TableData = {
|
|||
key: 'name',
|
||||
name: '分类名',
|
||||
type: 'input',
|
||||
must: true
|
||||
must: true,
|
||||
getDisable: () => {
|
||||
return !pathname.includes('/jobs')
|
||||
}
|
||||
},
|
||||
// {
|
||||
// key: 'type',
|
||||
|
|
@ -129,6 +132,9 @@ const data: TableData = {
|
|||
primary: 'id',
|
||||
subFun(self, data) {
|
||||
return self.api?.deleteData(data)
|
||||
},
|
||||
getDisable: () => {
|
||||
return !pathname.includes('/jobs')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue