feat:添加新增虚拟机
Build and Deploy Vue3 / build (push) Successful in 2m40s
Build and Deploy Vue3 / deploy (push) Successful in 25m4s

This commit is contained in:
2025-10-01 11:56:04 +08:00
parent 7163a3d3e7
commit afc6720f0d
2 changed files with 301 additions and 2 deletions
+8
View File
@@ -279,6 +279,14 @@ export const connectConsole = data => {
}
});
};
/**新增虚拟机 (管理员) */
export const addInstance = data => {
return http2.post("/v1/admin/instance/create_vm", data, {
headers: {
"Content-Type": "multipart/form-data"
}
});
};
/**获取虚拟机控制台 */
export const getInstanceConsole = data => {
return http2.get(`/v1/admin/instance/console/${data}`);