fixing path image
This commit is contained in:
parent
eb3f8d3947
commit
6bd037b3d6
2 changed files with 3 additions and 3 deletions
|
|
@ -140,7 +140,7 @@ onUnmounted(() => {
|
|||
border: 1px solid #e1e1e9;
|
||||
padding: 1rem;
|
||||
"
|
||||
v-html="md.render(text.replaceAll('images/', '/images/'))"
|
||||
v-html="md.render(text.replaceAll('images/', '/manual/images/'))"
|
||||
></div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ onMounted(async () => {
|
|||
window.addEventListener("resize", onResize);
|
||||
|
||||
// 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) {
|
||||
text.value = await res.text();
|
||||
|
|
@ -91,7 +91,7 @@ onUnmounted(() => {
|
|||
border: 1px solid #e1e1e9;
|
||||
padding: 1rem;
|
||||
"
|
||||
v-html="md.render(text.replaceAll('images/', '/images/'))"
|
||||
v-html="md.render(text.replaceAll('images/', '/manual/images/'))"
|
||||
></div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue