This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user