From d64cd9d7bd028376518829e3975f26419689e25c Mon Sep 17 00:00:00 2001 From: hh <292475944@qq.com> Date: Tue, 10 Nov 2020 10:37:33 +0800 Subject: [PATCH] ip --- src/api/hardware/product.js | 2 +- src/views/hardware/productList/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/hardware/product.js b/src/api/hardware/product.js index 2d3288f..f769b86 100644 --- a/src/api/hardware/product.js +++ b/src/api/hardware/product.js @@ -20,7 +20,7 @@ export function Info(productId) { // 新增产品 export function add(data) { return request({ - url: '/system/device', + url: '/system/product', method: 'post', data }) diff --git a/src/views/hardware/productList/index.vue b/src/views/hardware/productList/index.vue index 1260ac4..a0c8449 100644 --- a/src/views/hardware/productList/index.vue +++ b/src/views/hardware/productList/index.vue @@ -245,7 +245,7 @@ export default { cancelButtonText: "取消", type: "warning" }).then(() => { - return delproduct(ids); + return del(ids); }).catch(() => { }).then(res => { if (200 == res.code) { this.getList();