fix[example]: fixed create.vue cache error

https://github.com/PanJiaChen/vue-element-admin/issues/2608
This commit is contained in:
花裤衩 2019-09-30 16:38:18 +08:00
parent 4342032fb9
commit d571715c3d
2 changed files with 1 additions and 3 deletions

View File

@ -172,8 +172,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?

View File

@ -6,7 +6,7 @@
import ArticleDetail from './components/ArticleDetail'
export default {
name: 'CreateForm',
name: 'CreateArticle',
components: { ArticleDetail }
}
</script>