mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-21 15:10:33 +03:00
fix: trigger meta refresh on page load (fixes #283)
This commit is contained in:
@@ -11,8 +11,18 @@ const ChildComponent = {
|
||||
template: `<h3>You're looking at the <strong>{{ page }}</strong> page</h3>`,
|
||||
metaInfo () {
|
||||
return {
|
||||
title: this.page
|
||||
title: `${this.page} - ${this.date && this.date.toTimeString()}`
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
date: null
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
setInterval(() => {
|
||||
this.date = new Date();
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user