fix: add trailing slash to BASE_URL for demo iframe path

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Lum1104
2026-04-14 12:18:41 +08:00
Unverified
parent 5ac194885f
commit 90dc2d453e
+1 -1
View File
@@ -1,6 +1,6 @@
---
const base = import.meta.env.BASE_URL; /* /Understand-Anything/ in prod */
const demoUrl = `${base}demo/index.html`;
const demoUrl = `${base.endsWith('/') ? base : base + '/'}demo/index.html`;
---
<!-- Live Demo -->