root 2 anos atrás
pai
commit
eafa68bcb0
1 arquivos alterados com 24 adições e 2 exclusões
  1. 24 2
      pages/app/header-json.js

+ 24 - 2
pages/app/header-json.js

@@ -73,12 +73,34 @@ function getHeaderJson() {
                 },
                 {
                   "type": "button",
-                  "actionType": "ajax",
+                  "actionType": "",
                   "url": "/login/out",
                   "blank": false,
                   "label": "退出登录",
                   "id": "u:88d8afc464b5",
-                  "api": "http://localhost:8081/api/logout"
+                  "api": "http://localhost:8081/api/logout",
+                  "onEvent": {
+                    "click": {
+                      "actions": [
+                        {
+                          "args": {
+                            "options": {
+                              "silent": false
+                            },
+                            "api": {
+                              "url": "http://localhost:8081/api/logout",
+                              "method": "post",
+                              "messages": {
+                              }
+                            }
+                          },
+                          "outputVar": "responseResult",
+                          "actionType": "ajax"
+                        }
+                      ],
+                      "weight": 0
+                    }
+                  }
                 }
               ],
               "id": "u:d324269526b9",