Browse Source

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

pixel 5 years ago
parent
commit
f5c22c8144
2 changed files with 29 additions and 29 deletions
  1. 27 27
      QMPlusServer/static/config/config.json
  2. 2 2
      QMPlusVuePage/src/view/superAdmin/api/api.vue

+ 27 - 27
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
+    }
 }

+ 2 - 2
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})`
     }
   }
 }