sửa lỗi form không reset, cập nhật thêm hàm gọi api khi thêm mới tàu

This commit is contained in:
Tran Anh Tuan
2025-12-10 20:05:34 +07:00
parent 35027a7e23
commit 12fb7c48ed
3 changed files with 19 additions and 5 deletions

View File

@@ -31,6 +31,9 @@ export async function queryShipsImage(ship_id: string) {
});
}
export async function queryCreateShip(body: Model.ShipBodyRequest) {
return await api.post(`${API_GET_ALL_SHIP}`, body);
}
export async function queryUpdateShip(
shipId: string,
body: Model.ShipBodyRequest