diff --git a/src/api/hardware/node.js b/src/api/hardware/node.js new file mode 100644 index 0000000..3647d7c --- /dev/null +++ b/src/api/hardware/node.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + +// 新增节点 +export function addNode(data) { + return request({ + url: '/system/node/saveNode', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/api/hardware/product.js b/src/api/hardware/product.js index f5277e2..44d1227 100644 --- a/src/api/hardware/product.js +++ b/src/api/hardware/product.js @@ -42,11 +42,4 @@ export function del(ids) { method: 'delete' }) } -// 新增节点 -export function addNode(data) { - return request({ - url: '/system/product/saveNode', - method: 'post', - data - }) -} \ No newline at end of file + diff --git a/src/views/hardware/productList/index.vue b/src/views/hardware/productList/index.vue index 94a6c72..55f0208 100644 --- a/src/views/hardware/productList/index.vue +++ b/src/views/hardware/productList/index.vue @@ -186,7 +186,8 @@