From 2be347c8424d10981c7d246d8be4e024dbdb6d18 Mon Sep 17 00:00:00 2001 From: jiminglei <836545853@qq.com> Date: Tue, 30 Jan 2024 09:07:39 +0800 Subject: [PATCH] key --- psdc-ui/src/api/emonitor/api.js | 2 +- psdc-ui/src/views/system/cl/index.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/psdc-ui/src/api/emonitor/api.js b/psdc-ui/src/api/emonitor/api.js index 53ffdd4..ca2a1e9 100644 --- a/psdc-ui/src/api/emonitor/api.js +++ b/psdc-ui/src/api/emonitor/api.js @@ -102,7 +102,7 @@ export function addKey(data) { } //删除私钥 export function deleteKey(data) { - return request.post('system/private/key/del?'+data) + return request.post('system/private/key/del',data) } //修改私钥 export function setKey(data) { diff --git a/psdc-ui/src/views/system/cl/index.vue b/psdc-ui/src/views/system/cl/index.vue index b7ecc03..287dd5b 100644 --- a/psdc-ui/src/views/system/cl/index.vue +++ b/psdc-ui/src/views/system/cl/index.vue @@ -279,7 +279,9 @@ function handleDel(strategyCode) { }).then(() => { console.log(strategyCode) deleteKey( - strategyCode + { + "id": strategyCode + } ).then((res) => { console.log(res) ElMessage({type:"success",message:'删除成功!'})