fix notes

This commit is contained in:
2026-01-13 13:11:25 +00:00
parent ef53f0bea2
commit 5b0b932c3c
2 changed files with 3 additions and 2 deletions

View File

@@ -11,7 +11,8 @@ const last_edited = ref(null);
// if the address is https://www.adam-french.co.uk/notes/PATH
// request from https://www.adam-french.co.uk/api/notes/PATH
const route = useRoute();
const path = route.params.path;
const pathArray = route.params.path;
const path = Array.isArray(pathArray) ? pathArray.join("/") : pathArray;
const url = `/api/notes/${path}`;
function getFilename(headers) {