From 24c95938d2a2c4d74415bd43af105de3c785b701 Mon Sep 17 00:00:00 2001 From: GloamXun Date: Wed, 21 Oct 2026 01:15:17 +0800 Subject: [PATCH] Export PDF with the selected route-D engine --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 9ca95bd..6177ac6 100644 --- a/app.js +++ b/app.js @@ -630,7 +630,8 @@ async function createFile() { async function exportPdf() { if (!state.project) return; try { - const response = await fetch(projectPath("/pdf"), { method: "POST" }); + const engineQuery = state.routeD ? "?engine=route-d" : ""; + const response = await fetch(projectPath("/pdf") + engineQuery, { method: "POST" }); if (!response.ok) { toast(`PDF 编译失败:${await response.text()}`, true); return;