service/lawservice.js
@@ -3,16 +3,14 @@ module.exports = { //查找守法动态 getLawRegulations: function (userId, page, sceneTypeId, fun) { getLawRegulations: function (userId, page, condition, fun, perPage = 30) { let cb = { url: `/laws/condition/${userId}`, params: { page: page, per_page: 30 per_page: perPage }, data: { sceneTypeId: sceneTypeId } data: condition } Object.assign(cb, fun)