diff --git a/src/api/http/http-api.js b/src/api/http/http-api.js index 9dd8995..8aa120b 100644 --- a/src/api/http/http-api.js +++ b/src/api/http/http-api.js @@ -29,6 +29,11 @@ export default { url: "/camera", name: "新增球机" }, + editCamera: { + method: "PUT", + url: "/camera", + name: "编辑球机" + }, queryList: { url: '/order/list', name: '查询', diff --git a/src/views/cameraManage/model.vue b/src/views/cameraManage/model.vue index fc00d26..71f4d7a 100644 --- a/src/views/cameraManage/model.vue +++ b/src/views/cameraManage/model.vue @@ -117,7 +117,7 @@ export default { }); }else if(this.title=='编辑球机'){ values.id = this.id - this.$api.httpApi.editStreet({ + this.$api.httpApi.editCamera({ data:values }).then(res => { if(res.code==200){