changed functions for nuxt-friendly version

This commit is contained in:
2026-01-21 18:28:26 +00:00
parent 048bcd1b5a
commit 501580b2e0
4 changed files with 18 additions and 22 deletions

View File

@@ -1,6 +1,7 @@
<script setup lang="ts">
import * as z from 'zod'
import type { FormSubmitEvent } from '@nuxt/ui'
import urlJoin from "url-join"
definePageMeta({
layout: "settings",
@@ -27,7 +28,7 @@
async function submitChanges(event: FormSubmitEvent<Schema>) {
loading_btn.value = true
await fetch(base_url + "/settings/edit_user", {
await fetch(urlJoin(conf.app.baseURL, "/settings/edit_user"), {
method: "POST",
headers: {
"Content-Type": "application/json"