diff --git a/QMPlusServer/static/config/config.json b/QMPlusServer/static/config/config.json index 730bc286..c0b07622 100644 --- a/QMPlusServer/static/config/config.json +++ b/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 + } } \ No newline at end of file diff --git a/QMPlusVuePage/src/view/superAdmin/api/api.vue b/QMPlusVuePage/src/view/superAdmin/api/api.vue index 4a86e0b8..0edbe3bf 100644 --- a/QMPlusVuePage/src/view/superAdmin/api/api.vue +++ b/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})` } } }