This commit is contained in:
zhangjianjun 2026-03-27 18:46:41 +08:00
parent 2a637a31cf
commit 79a1d261d8
1 changed files with 7 additions and 1 deletions

View File

@ -106,7 +106,10 @@ const data: TableData = {
key: 'name', key: 'name',
name: '分类名', name: '分类名',
type: 'input', type: 'input',
must: true must: true,
getDisable: () => {
return !pathname.includes('/jobs')
}
}, },
// { // {
// key: 'type', // key: 'type',
@ -129,6 +132,9 @@ const data: TableData = {
primary: 'id', primary: 'id',
subFun(self, data) { subFun(self, data) {
return self.api?.deleteData(data) return self.api?.deleteData(data)
},
getDisable: () => {
return !pathname.includes('/jobs')
} }
} }
} }