Skip to content

Commit

Permalink
fix[example]: fixed create.vue cache error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jar-bogulak committed Sep 30, 2019
1 parent 4bcf2de commit 88a5065
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/views/example/components/ArticleDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ export default {
if (this.isEdit) {
const id = this.$route.params && this.$route.params.id
this.fetchData(id)
} else {
this.postForm = Object.assign({}, defaultForm)
}
// Why need to make a copy of this.$route here?
Expand Down
2 changes: 1 addition & 1 deletion src/views/example/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import ArticleDetail from './components/ArticleDetail'
export default {
name: 'CreateForm',
name: 'CreateArticle',
components: { ArticleDetail }
}
</script>
Expand Down

0 comments on commit 88a5065

Please sign in to comment.