Browse Source

修复了api中 由于并不存在methods字段 导致表格不渲染的问题

main
pixel 5 years ago
parent
commit
f5c22c8144
  1. 4
      QMPlusVuePage/src/view/superAdmin/api/api.vue

4
QMPlusVuePage/src/view/superAdmin/api/api.vue

@ -87,7 +87,7 @@ import {
} from '@/api/api' } from '@/api/api'
import infoList from '@/components/mixins/infoList' import infoList from '@/components/mixins/infoList'
const methodOptions =[
const methodOptions = [
{ {
value: 'POST', value: 'POST',
label: '创建' label: '创建'
@ -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…
Cancel
Save