Set logUrl

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-05-18 14:56:52 +09:00
parent a566c2d4e2
commit ab40e4734c
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1

View File

@ -2,7 +2,7 @@
$(document).ready(()=> {
new Vue({
el: "#fluent-log",
paramAttributes: ["logUrl", "initialAutoReload"],
props: ["logUrl", "initialAutoReload"],
data: {
"autoFetch": false,
"logs": [],
@ -10,6 +10,11 @@ $(document).ready(()=> {
"processing": false
},
beforeMount: function() {
this.logUrl = this.$el.attributes.logUrl.nodeValue;
this.initialAutoReload = this.$el.attributes.initialAutoReload.nodeValue;
},
mounted: function(){
this.fetchLogs();