This commit is contained in:
2022-06-23 00:34:31 +00:00
parent fb0a419624
commit 59a899a571
3 changed files with 11 additions and 12 deletions

View File

@@ -166,7 +166,9 @@ export default {
}
try {
window.$gz.form.deleteAllErrorBoxErrors(vm);
const res = await window.$gz.api.get(API_BASE_URL + recordId);
const res = await window.$gz.api.get(
API_BASE_URL + "/by-dbid/" + recordId
);
if (res.error) {
if (res.error.code == "2010") {
window.$gz.form.handleObjectNotFound(vm);
@@ -251,7 +253,7 @@ export default {
JUST_DELETED = true;
this.$router.go(-1);
} else {
const url = API_BASE_URL + this.$route.params.recordid;
const url = API_BASE_URL + "/by-dbid/" + this.$route.params.recordid;
window.$gz.form.deleteAllErrorBoxErrors(this);
const res = await window.$gz.api.remove(url);
if (res.error) {
@@ -270,15 +272,6 @@ export default {
loading: false
});
}
},
duplicate() {
this.$router.push({
name: "integration-edit",
params: {
recordid: 0,
obj: this.obj
}
});
}
}
};