Skip to content

Commit 2f82260

Browse files
committed
fix[example]: fixed create.vue cache error
PanJiaChen/vue-element-admin#2608
1 parent 0cc0cfa commit 2f82260

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/views/example/components/ArticleDetail.vue

-2
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ export default {
170170
if (this.isEdit) {
171171
const id = this.$route.params && this.$route.params.id
172172
this.fetchData(id)
173-
} else {
174-
this.postForm = Object.assign({}, defaultForm)
175173
}
176174
177175
// Why need to make a copy of this.$route here?

src/views/example/create.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import ArticleDetail from './components/ArticleDetail'
77
88
export default {
9-
name: 'CreateForm',
9+
name: 'CreateArticle',
1010
components: { ArticleDetail }
1111
}
1212
</script>

0 commit comments

Comments
 (0)