root 2 年之前
父節點
當前提交
eafa68bcb0
共有 1 個文件被更改,包括 24 次插入2 次删除
  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",