Sfoglia il codice sorgente

fix: 预览生成Pdf路径问题

过卫栋 2 giorni fa
parent
commit
593d94d821
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      resources/views/tools/question-preview.blade.php

+ 1 - 1
resources/views/tools/question-preview.blade.php

@@ -423,7 +423,7 @@
                     this.pdfUrl = '';
                     this.pdfUrl = '';
 
 
                     try {
                     try {
-                        const response = await fetch('{{ route("tools.question-preview.pdf") }}', {
+                        const response = await fetch('/tools/question-preview/pdf', {
                             method: 'POST',
                             method: 'POST',
                             headers: {
                             headers: {
                                 'Content-Type': 'application/json',
                                 'Content-Type': 'application/json',