Skip to content

Commit

Permalink
修复 Model search 未执行导致的错误 Closes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
409915016 committed Oct 18, 2020
1 parent e5ebca6 commit 0e55b92
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/router-components/admin/Category.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,12 @@ export default {
this.newer = true;
return;
}
Category.search("name", this.$route.params.name).then(([category]) => {
this.model = category;
this.category = category.getCacheData();
Category
.search("name", this.$route.params.name)
.exec()
.then(([category]) => {
this.model = category;
this.category = category.getCacheData();
});
},
Expand Down

0 comments on commit 0e55b92

Please sign in to comment.