Skip to content

Commit

Permalink
fix: adding withbase to public asset routes
Browse files Browse the repository at this point in the history
  • Loading branch information
santilland committed May 6, 2024
1 parent aaf98b7 commit b52a4c1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion stories/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ layout: page
---
<script setup>
import { data } from './config.data.js';
import { withBase } from 'vitepress'
let storyid, storyurl;
if ('URLSearchParams' in window) {
const searchParams = new URLSearchParams(window.location.search);
Expand All @@ -13,7 +14,7 @@ layout: page
}
</script>

<eox-storytelling v-if="storyurl" :markdown-url=storyurl></eox-storytelling>
<eox-storytelling v-if="storyurl" :markdown-url=withBase(storyurl)></eox-storytelling>
<div v-else>
<h2 style="font-size: 40px; height: 50px; margin: 20px;"> Story gallery </h2>
<div v-for="key in Object.keys(data)">
Expand Down
5 changes: 4 additions & 1 deletion uc1dashboard/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
layout: page
---

<script setup>
import { withBase } from 'vitepress'
</script>

<eo-dash config="/configs/firstconfig.js"/>
<eo-dash :config="withBase('/configs/firstconfig.js')"/>
6 changes: 5 additions & 1 deletion uc2dashboard/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
layout: page
---

<eo-dash config="/configs/secondconfig.js"/>
<script setup>
import { withBase } from 'vitepress'
</script>

<eo-dash :config="withBase('/configs/secondconfig.js')"/>

0 comments on commit b52a4c1

Please sign in to comment.