增加提示语

This commit is contained in:
klausY
2020-03-10 17:04:06 +08:00
2 changed files with 29 additions and 29 deletions
@@ -87,7 +87,7 @@ import {
} from '@/api/api'
import infoList from '@/components/mixins/infoList'
const methodOptions =[
const methodOptions = [
{
value: 'POST',
label: '创建'
@@ -220,7 +220,7 @@ export default {
filters:{
methodFiletr(value){
const target = methodOptions.filter(item=>item.value === value)[0]
return `${target.label}(${target.value})`
return target && `${target.label}(${target.value})`
}
}
}