File tree 1 file changed +10
-2
lines changed
src/views/example/components
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -185,12 +185,16 @@ export default {
185
185
fetchData (id ) {
186
186
fetchArticle (id).then (response => {
187
187
this .postForm = response .data
188
- // Just for test
188
+
189
+ // just for test
189
190
this .postForm .title += ` Article Id:${ this .postForm .id } `
190
191
this .postForm .content_short += ` Article Id:${ this .postForm .id } `
191
192
192
- // Set tagsview title
193
+ // set tagsview title
193
194
this .setTagsViewTitle ()
195
+
196
+ // set page title
197
+ this .setPageTitle ()
194
198
}).catch (err => {
195
199
console .log (err)
196
200
})
@@ -200,6 +204,10 @@ export default {
200
204
const route = Object .assign ({}, this .tempRoute , { title: ` ${ title} -${ this .postForm .id } ` })
201
205
this .$store .dispatch (' tagsView/updateVisitedView' , route)
202
206
},
207
+ setPageTitle () {
208
+ const title = ' Edit Article'
209
+ document .title = ` ${ title} - ${ this .postForm .id } `
210
+ },
203
211
submitForm () {
204
212
console .log (this .postForm )
205
213
this .$refs .postForm .validate (valid => {
You can’t perform that action at this time.
0 commit comments