based path correction
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user