changes
This commit is contained in:
@@ -315,8 +315,8 @@ async function update() {
|
||||
data.link = arr1.length === 0 ? null : arr1;
|
||||
let api = $findapi("useraction");
|
||||
record = data.id
|
||||
? await $updateapi("useraction", data, api.params.values)
|
||||
: await $insertapi("useraction", data, api.params.values);
|
||||
? await $updateapi("useraction", { data, values: api.params.values })
|
||||
: await $insertapi("useraction", { data, values: api.params.values });
|
||||
getValue();
|
||||
}
|
||||
async function removeImage(v, i) {
|
||||
|
||||
@@ -119,7 +119,7 @@ export default {
|
||||
data = this.$copy(this.current);
|
||||
data.detail = this.detail;
|
||||
}
|
||||
let rs = data.id ? await this.$updateapi(this.api, data) : await this.$insertapi(this.api, data);
|
||||
let rs = data.id ? await this.$updateapi(this.api, data) : await this.$insertapi(this.api, { data });
|
||||
if (!rs) return;
|
||||
this.detail = undefined;
|
||||
if (this.current) {
|
||||
|
||||
Reference in New Issue
Block a user