This commit is contained in:
@@ -83,6 +83,16 @@ export default {
|
||||
});
|
||||
} else {
|
||||
await vm.getDataFromApi(vm.$route.params.recordid); //let getdata handle loading
|
||||
//check for copy wo item on route params
|
||||
let cp = this.$route.params.copyItem;
|
||||
if (cp) {
|
||||
cp.id = 0;
|
||||
cp.concurrency = 0;
|
||||
cp.uid = Date.now();
|
||||
cp.isDirty = true;
|
||||
console.log("copy item is", JSON.stringify(cp));
|
||||
vm.obj.items.push(cp);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
//new path
|
||||
|
||||
Reference in New Issue
Block a user