Skip to content

Commit 2e8aff7

Browse files
committed
chore: init ansiToHTML in data()
1 parent f5b5538 commit 2e8aff7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

web_src/js/components/RepoActionView.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ const sfc = {
8383
8484
data() {
8585
return {
86+
ansiToHTML: new AnsiToHTML({escapeXML: true}),
87+
8688
// internal state
8789
loading: false,
8890
currentJobStepsStates: [],
@@ -95,10 +97,6 @@ const sfc = {
9597
};
9698
},
9799
98-
created() {
99-
this.ansiToHTML = new AnsiToHTML({escapeXML: true});
100-
},
101-
102100
mounted() {
103101
// load job data and then auto-reload periodically
104102
this.loadJobData();

0 commit comments

Comments
 (0)