修复了api中 由于并不存在methods字段 导致表格不渲染的问题
This commit is contained in:
parent
38ac4542a4
commit
638e7eac4c
|
@ -220,7 +220,7 @@ export default {
|
||||||
filters:{
|
filters:{
|
||||||
methodFiletr(value){
|
methodFiletr(value){
|
||||||
const target = methodOptions.filter(item=>item.value === value)[0]
|
const target = methodOptions.filter(item=>item.value === value)[0]
|
||||||
return `${target.label}(${target.value})`
|
return target && `${target.label}(${target.value})`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue