fix: 修复了创建虚拟机无法获取镜像列表的BUG
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import {http2} from "@/utils/request.js";
|
||||
/**获取镜像列表 */
|
||||
export const getMirrorList = data => {
|
||||
if(typeof data == "string"){
|
||||
return http2.get("/v1/image/list?server_id=" + data + "&count=9999999")
|
||||
}
|
||||
return http2.get(`/v1/image/list?server_id=${data.server_id}&page=${data.page}&count=${data.count}&key=${data.key}&class_id=${data.class_id}`);
|
||||
};
|
||||
/*用户获取镜像列表 */
|
||||
|
||||
Reference in New Issue
Block a user