Skip to content

Commit e1e4072

Browse files
committed
fix: 修复删除接口传参Bug,版本升级至0.5.3
1 parent 7b25fdc commit e1e4072

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "element-pro-crud",
3-
"version": "0.5.2",
3+
"version": "0.5.3",
44
"main": "lib/ProCrud.umd.min.js",
55
"files": [
66
"lib",

Diff for: packages/crud-table/src/CrudTable.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ export default class CrudTable extends Vue {
645645
actionColumnDel(row) {
646646
this.currentRow = row;
647647
// 如果prop传入了promiseForDel说明需要回调自定义删除
648-
const promise = this.promiseForDel ? this.promiseForDel(row.id) : this.$PROCRUD.crud(DML.DELETE, this.tableName, { id: row.id });
648+
const promise = this.promiseForDel ? this.promiseForDel(row.id) : this.$PROCRUD.crud(DML.DELETE, this.tableName, {}, { id: row.id });
649649
promise.then(() => {
650650
this.tableReload();
651651
this.$message({

Diff for: packages/form-designer/src/components/FileUpload/FileUpload.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export default class FileUpload extends Vue {
280280
type: 'warning',
281281
})
282282
.then(() => {
283-
this.$PROCRUD.crud(DML.DELETE, this.tableName, {
283+
this.$PROCRUD.crud(DML.DELETE, this.tableName, {}, {
284284
id: row.id,
285285
}).then((res: any) => {
286286
if (res.code === 200) {

0 commit comments

Comments
 (0)