refactor: code review、数据库备份恢复支持ssh隧道操作

This commit is contained in:
meilin.huang
2024-01-05 22:16:38 +08:00
parent 5ada63d4a1
commit e158422091
43 changed files with 298 additions and 334 deletions

View File

@@ -114,7 +114,8 @@ const search = async () => {
pageTableRef.value.search();
};
const parseData = async (dataList: any) => {
const parseData = async (res: any) => {
const dataList = res.list;
// 填充机器信息
for (let x of dataList) {
const machineId = x.machineId;
@@ -137,7 +138,7 @@ const parseData = async (dataList: any) => {
x.machineIp = machine?.ip;
x.machineName = machine?.name;
}
return dataList;
return res;
};
const cancel = () => {