small correction :/
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import * as z from 'zod'
|
import * as z from 'zod'
|
||||||
import type { FormSubmitEvent } from '@nuxt/ui'
|
import type { FormSubmitEvent } from '@nuxt/ui'
|
||||||
import urlJoin from "url-join"
|
|
||||||
|
|
||||||
useHead({
|
useHead({
|
||||||
title: "Settings"
|
title: "Settings"
|
||||||
@@ -32,7 +31,7 @@
|
|||||||
|
|
||||||
async function submitChanges(event: FormSubmitEvent<Schema>) {
|
async function submitChanges(event: FormSubmitEvent<Schema>) {
|
||||||
loading_btn.value = true
|
loading_btn.value = true
|
||||||
await fetch(use_based_path("/settings/edit_user"), {
|
await fetch(useBasedPath("/settings/edit_user"), {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
|
|||||||
Reference in New Issue
Block a user