mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 01:07:09 +02:00
Set logUrl
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
a566c2d4e2
commit
ab40e4734c
@ -2,7 +2,7 @@
|
|||||||
$(document).ready(()=> {
|
$(document).ready(()=> {
|
||||||
new Vue({
|
new Vue({
|
||||||
el: "#fluent-log",
|
el: "#fluent-log",
|
||||||
paramAttributes: ["logUrl", "initialAutoReload"],
|
props: ["logUrl", "initialAutoReload"],
|
||||||
data: {
|
data: {
|
||||||
"autoFetch": false,
|
"autoFetch": false,
|
||||||
"logs": [],
|
"logs": [],
|
||||||
@ -10,6 +10,11 @@ $(document).ready(()=> {
|
|||||||
"processing": false
|
"processing": false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
beforeMount: function() {
|
||||||
|
this.logUrl = this.$el.attributes.logUrl.nodeValue;
|
||||||
|
this.initialAutoReload = this.$el.attributes.initialAutoReload.nodeValue;
|
||||||
|
},
|
||||||
|
|
||||||
mounted: function(){
|
mounted: function(){
|
||||||
this.fetchLogs();
|
this.fetchLogs();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user