duqing2026 commited on
Commit
e3c2382
·
1 Parent(s): 686bb43

修复 Jinja2 模板错误:解决与 Vue 语法的冲突

Browse files
Files changed (1) hide show
  1. templates/index.html +2 -1
templates/index.html CHANGED
@@ -25,6 +25,7 @@
25
  </style>
26
  </head>
27
  <body class="bg-gray-50 text-gray-800 h-screen overflow-hidden">
 
28
  <div id="app" v-cloak class="h-full flex flex-col md:flex-row">
29
  <!-- Sidebar Controls -->
30
  <div class="w-full md:w-80 bg-white border-r border-gray-200 flex flex-col h-full z-10 shadow-lg">
@@ -160,6 +161,7 @@
160
  </div>
161
  </div>
162
  </div>
 
163
 
164
  <script>
165
  const { createApp, ref, computed, reactive, watch } = Vue;
@@ -349,6 +351,5 @@
349
  }
350
  }).mount('#app');
351
  </script>
352
- {% endraw %}
353
  </body>
354
  </html>
 
25
  </style>
26
  </head>
27
  <body class="bg-gray-50 text-gray-800 h-screen overflow-hidden">
28
+ {% raw %}
29
  <div id="app" v-cloak class="h-full flex flex-col md:flex-row">
30
  <!-- Sidebar Controls -->
31
  <div class="w-full md:w-80 bg-white border-r border-gray-200 flex flex-col h-full z-10 shadow-lg">
 
161
  </div>
162
  </div>
163
  </div>
164
+ {% endraw %}
165
 
166
  <script>
167
  const { createApp, ref, computed, reactive, watch } = Vue;
 
351
  }
352
  }).mount('#app');
353
  </script>
 
354
  </body>
355
  </html>