新增中转站模块可拖拽

This commit is contained in:
2025-10-11 12:22:00 +08:00
parent e05a286653
commit 4046140413
5 changed files with 405 additions and 226 deletions

View File

@@ -2478,6 +2478,21 @@ export const api = {
}
},
/**
* Updates the display order of relay stations
* @author yovinchen
* @param stationIds - Array of station IDs in the new order
* @returns Promise resolving when order is updated
*/
async relayStationUpdateOrder(stationIds: string[]): Promise<void> {
try {
return await invoke<void>("relay_station_update_order", { stationIds });
} catch (error) {
console.error("Failed to update relay station order:", error);
throw error;
}
},
// ============= PackyCode Nodes =============
/**