diff --git a/src/components/product/account.vue b/src/components/product/account.vue index 8a6eabe..3ba192d 100644 --- a/src/components/product/account.vue +++ b/src/components/product/account.vue @@ -163,6 +163,7 @@ + @@ -386,11 +387,10 @@ export default { cancelButtonText: '取消', type: 'warning' }).then(_ => { - this.$api - .post('course/v1/productaccount/Delete?id=' + item.Id) - .then(res => { - that.get() - }) + this.$api.post(this.$api.phpURL + 'manager/account/delete', {'id':item.Id}).then(res => { + this.$message.success('删除成功') + that.get() + }) }) }, dels () { diff --git a/src/components/product/accountSearch.vue b/src/components/product/accountSearch.vue index a980578..1fee6eb 100644 --- a/src/components/product/accountSearch.vue +++ b/src/components/product/accountSearch.vue @@ -218,11 +218,10 @@ export default { cancelButtonText: "取消", type: "warning" }).then(_ => { - this.$api - .post("course/v1/productaccount/Delete?id=" + item.Id) - .then(res => { - that.get(); - }); + this.$api.post(this.$api.phpURL + 'manager/account/delete', {'id':item.Id}).then(res => { + this.$message.success('删除成功') + that.get() + }) }); }, goAdd() {