Export PDF with the selected route-D engine
This commit is contained in:
1 parent
9af4318e87
commit
24c95938d2
1 file changed
+2
-1
@@ -630,7 +630,8 @@ async function createFile() {
|
|||||||
async function exportPdf() {
|
async function exportPdf() {
|
||||||
if (!state.project) return;
|
if (!state.project) return;
|
||||||
try {
|
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) {
|
if (!response.ok) {
|
||||||
toast(`PDF 编译失败:${await response.text()}`, true);
|
toast(`PDF 编译失败:${await response.text()}`, true);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user