Skip to content

Commit 122bdf2

Browse files
committed
demo: update can_post after receive response
1 parent 62058cd commit 122bdf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/apps/apijson_demo/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@
4949
vm.request_data = vm.request_data_list[0].value
5050
},
5151
post_request_data: function(){
52-
vm.can_post = false
5352
$.ajax({
5453
type: "POST",
5554
contentType: 'application/json',
5655
url: "{{=url_for('uliweb_apijson.apijson.views.ApiJson.get')}}",
5756
data: vm.request_data,
5857
success: function (data) {
5958
vm.response_data = JSON.stringify(data,null,2)
59+
vm.can_post = false
6060
}
6161
})
6262

0 commit comments

Comments
 (0)