diff --git a/src/api/Public/crud.js b/src/api/Public/crud.js index c127792..c94c87f 100644 --- a/src/api/Public/crud.js +++ b/src/api/Public/crud.js @@ -6,7 +6,7 @@ */ import axios from '@/utils/fetch'; -export default function (dml, tableName, data) { +export default function (dml, tableName, data, params) { const options = { // url: `/${tableName.replace(/_/g, '/')}/${dml}`, url: `/${tableName}/${dml}`, @@ -29,6 +29,7 @@ export default function (dml, tableName, data) { ], ...data, }; + options.params = params; } else if ('add,update'.includes(dml)) { options.data = data; } else {