fix: article meta does not show up on reload (#8415)
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
This commit is contained in:
@@ -157,7 +157,9 @@ export default {
|
|||||||
return this.metaTags.map(item => item.name);
|
return this.metaTags.map(item => item.name);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
watch: {
|
||||||
|
article: {
|
||||||
|
handler() {
|
||||||
if (!isEmptyObject(this.article.meta || {})) {
|
if (!isEmptyObject(this.article.meta || {})) {
|
||||||
const {
|
const {
|
||||||
meta: { title = '', description = '', tags = [] },
|
meta: { title = '', description = '', tags = [] },
|
||||||
@@ -166,7 +168,12 @@ export default {
|
|||||||
this.metaDescription = description;
|
this.metaDescription = description;
|
||||||
this.metaTags = this.formattedTags({ tags });
|
this.metaTags = this.formattedTags({ tags });
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
deep: true,
|
||||||
|
immediate: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
this.saveArticle = debounce(
|
this.saveArticle = debounce(
|
||||||
() => {
|
() => {
|
||||||
this.$emit('save-article', {
|
this.$emit('save-article', {
|
||||||
|
|||||||
Reference in New Issue
Block a user