fixing path image

This commit is contained in:
Warunee Tamkoo 2024-12-09 12:42:59 +07:00
parent eb3f8d3947
commit 6bd037b3d6
2 changed files with 3 additions and 3 deletions

View file

@ -140,7 +140,7 @@ onUnmounted(() => {
border: 1px solid #e1e1e9; border: 1px solid #e1e1e9;
padding: 1rem; padding: 1rem;
" "
v-html="md.render(text.replaceAll('images/', '/images/'))" v-html="md.render(text.replaceAll('images/', '/manual/images/'))"
></div> ></div>
</div> </div>

View file

@ -64,7 +64,7 @@ onMounted(async () => {
window.addEventListener("resize", onResize); window.addEventListener("resize", onResize);
// if (typeof route.params.name === "string") { // if (typeof route.params.name === "string") {
const res = await fetch(`/manual/documents/${route.path}.md`); const res = await fetch(`/documents/${route.path}.md`);
if (res && res.ok) { if (res && res.ok) {
text.value = await res.text(); text.value = await res.text();
@ -91,7 +91,7 @@ onUnmounted(() => {
border: 1px solid #e1e1e9; border: 1px solid #e1e1e9;
padding: 1rem; padding: 1rem;
" "
v-html="md.render(text.replaceAll('images/', '/images/'))" v-html="md.render(text.replaceAll('images/', '/manual/images/'))"
></div> ></div>
</div> </div>