api路径修复
deploy-userbase-front / build-and-deploy (push) Successful in 2m57s

This commit is contained in:
chenxing
2026-08-19 12:01:26 +08:00
parent eb0ab76c83
commit 35529fc671
7 changed files with 123 additions and 890 deletions
+3 -3
View File
@@ -291,7 +291,7 @@ function showDeleteNode() {
info: '删除后不可恢复!',
async onOk() {
try {
await Apis.SysGroup.delete({ pathParams: { id: node?.id } });
await Apis.SysGroup.sysGroupRemove({ pathParams: { id: node?.id } });
Message.success('删除成功!');
refTreePanel.value?.removeNode(node?.id);
} catch (e: any) {
@@ -313,11 +313,11 @@ async function saveEditNode() {
if (!id) {
const parentId = editNodeModal.parentId;
const data: any = { name, parentId, type: Number(editNodeModal.type) };
await Apis.SysGroup.add({ data });
await Apis.SysGroup.sysGroupAdd({ data });
Message.success('新增成功');
await refTreePanel.value?.refreshTree(parentId);
} else {
await Apis.SysGroup.edit({ pathParams: { id }, data: { name, type: Number(editNodeModal.type) } });
await Apis.SysGroup.sysGroupEdit({ pathParams: { id }, data: { name, type: Number(editNodeModal.type) } });
Message.success('编辑成功');
await refTreePanel.value?.refreshTree(id);
}