修复了api中 由于并不存在methods字段 导致表格不渲染的问题
This commit is contained in:
@@ -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})`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user