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