based path correction

This commit is contained in:
2026-01-21 20:48:45 +00:00
parent 3eeaa797ad
commit 4338f347c5
5 changed files with 10 additions and 12 deletions

View File

@@ -5,7 +5,6 @@
definePageMeta({
layout: "settings",
middleware: ["login-required"]
})
const loading_btn = ref(false)
const toast = useToast()
@@ -35,7 +34,7 @@
async function submitChanges(event: FormSubmitEvent<Schema>) {
loading_btn.value = true
try {
fetch(urlJoin(config.app.baseURL,"/settings/changepw"), {
fetch(useBasedPath("/settings/changepw"), {
method: "POST",
headers: {
"Content-Type": "application/json"