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 @@ -183,12 +183,16 @@ export default {
183
183
fetchData (id ) {
184
184
fetchArticle (id).then (response => {
185
185
this .postForm = response .data
186
- // Just for test
186
+
187
+ // just for test
187
188
this .postForm .title += ` Article Id:${ this .postForm .id } `
188
189
this .postForm .content_short += ` Article Id:${ this .postForm .id } `
189
190
190
- // Set tagsview title
191
+ // set tagsview title
191
192
this .setTagsViewTitle ()
193
+
194
+ // set page title
195
+ this .setPageTitle ()
192
196
}).catch (err => {
193
197
console .log (err)
194
198
})
@@ -198,6 +202,10 @@ export default {
198
202
const route = Object .assign ({}, this .tempRoute , { title: ` ${ title} -${ this .postForm .id } ` })
199
203
this .$store .dispatch (' tagsView/updateVisitedView' , route)
200
204
},
205
+ setPageTitle () {
206
+ const title = ' Edit Article'
207
+ document .title = ` ${ title} - ${ this .postForm .id } `
208
+ },
201
209
submitForm () {
202
210
console .log (this .postForm )
203
211
this .$refs .postForm .validate (valid => {
You can’t perform that action at this time.
0 commit comments