This commit is contained in:
Pan
2019-05-03 17:34:08 +08:00
parent 3f16415d02
commit 48f0f88250

View File

@@ -153,9 +153,6 @@ export default {
contentShortLength() {
return this.postForm.content_short.length
},
lang() {
return this.$store.getters.language
},
displayTime: {
// set and get is useful when the data
// returned by the back end api is different from the front end
@@ -197,7 +194,7 @@ export default {
})
},
setTagsViewTitle() {
const title = this.lang === 'zh' ? '编辑文章' : 'Edit Article'
const title = 'Edit Article'
const route = Object.assign({}, this.tempRoute, { title: `${title}-${this.postForm.id}` })
this.$store.dispatch('tagsView/updateVisitedView', route)
},