From f5c22c81443f7a9b4c2558d56f503b5bdbcaff0c Mon Sep 17 00:00:00 2001 From: pixel <303176530@qq.com> Date: Mon, 9 Mar 2020 14:06:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86api=E4=B8=AD=20?= =?UTF-8?q?=E7=94=B1=E4=BA=8E=E5=B9=B6=E4=B8=8D=E5=AD=98=E5=9C=A8methods?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=20=E5=AF=BC=E8=87=B4=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E4=B8=8D=E6=B8=B2=E6=9F=93=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QMPlusServer/static/config/config.json | 54 +++++++++---------- QMPlusVuePage/src/view/superAdmin/api/api.vue | 4 +- 2 files changed, 29 insertions(+), 29 deletions(-) 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})` } } }