This commit is contained in:
2019-06-05 17:29:48 +00:00
parent 1ef6f6bbd9
commit 47d037dc76
5 changed files with 22 additions and 35 deletions

View File

@@ -273,7 +273,10 @@ export default {
},
created() {
this.$gzevent.$on("menu-click", clickHandler);
this.getDataFromApi();
//id 0 means create a new record don't load one
if (this.$route.params.id != 0) {
this.getDataFromApi();
}
},
beforeRouteLeave(to, from, next) {
var vm = this;