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