Browse Source

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

main
pixel 5 years ago
parent
commit
f5c22c8144
  1. 54
      QMPlusServer/static/config/config.json
  2. 4
      QMPlusVuePage/src/view/superAdmin/api/api.vue

54
QMPlusServer/static/config/config.json

@ -1,29 +1,29 @@
{
"casbinconfig": {
"modelPath": "./static/rbacmodel/rbac_model.conf"
},
"jwt": {
"signingKey": "qmPlus"
},
"mysqladmin": {
"username": "root",
"password": "Aa@6447985",
"path": "127.0.0.1:3306",
"dbname": "qmplus",
"config": "charset=utf8\u0026parseTime=True\u0026loc=Local"
},
"qiniu": {
"accessKey": "25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ",
"secretKey": "pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY"
},
"redisadmin": {
"addr": "127.0.0.1:6379",
"password": "",
"db": 0
},
"system": {
"useMultipoint": false,
"env": "develop",
"addr": 8888
}
"casbinconfig": {
"modelPath": "./static/rbacmodel/rbac_model.conf"
},
"jwt": {
"signingKey": "qmPlus"
},
"mysqladmin": {
"username": "root",
"password": "Aa@6447985",
"path": "127.0.0.1:3306",
"dbname": "qmplus",
"config": "charset=utf8\u0026parseTime=True\u0026loc=Local"
},
"qiniu": {
"accessKey": "25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ",
"secretKey": "pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY"
},
"redisadmin": {
"addr": "127.0.0.1:6379",
"password": "",
"db": 0
},
"system": {
"useMultipoint": false,
"env": "develop",
"addr": 8888
}
}

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

@ -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})`
}
}
}

Loading…
Cancel
Save