Skip to content

Commit

Permalink
display after mounted
Browse files Browse the repository at this point in the history
  • Loading branch information
simon300000 committed Oct 11, 2019
1 parent 088e33a commit 851f342
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<body style="-webkit-app-region: drag">

<div id="main">
<div id="main" style="display: none;">
<section class="hero is-fullheight">
<div class="hero-body">
<div class="container">
Expand Down
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@ new Vue({
return interval
}
setInterval(interval(), 1000)
},
mounted() {
document.getElementById('main').style.display = 'block'
}
})

0 comments on commit 851f342

Please sign in to comment.