Export PDF with the selected route-D engine

This commit is contained in:
gloamxun committed 2026-10-21 01:15:17 +08:00
1 parent 9af4318e87
commit 24c95938d2
1 file changed
+2 -1
+2 -1
View File
@@ -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;