diff --git a/warehousing-system/project_web_ui-xxs/src/views/component/initial_value/product.vue b/warehousing-system/project_web_ui-xxs/src/views/component/initial_value/product.vue index b5200029..ddf6eb24 100644 --- a/warehousing-system/project_web_ui-xxs/src/views/component/initial_value/product.vue +++ b/warehousing-system/project_web_ui-xxs/src/views/component/initial_value/product.vue @@ -250,7 +250,7 @@ export default { type: 'warning' }).catch(error => error) if (result !== 'confirm') return this.$message.info('用户取消操作') - const { data: resultDB } = await this.$http.delete(`/product/delete/${product.barCode}`) + const { data: resultDB } = await this.$http.delete(`/product/delete/${product.id}`) if (resultDB.status !== 200) return this.$message.error('删除商品失败') this.getProductList() this.$message.success('商品删除成功')