bessere anzeige search

This commit is contained in:
scammo
2021-09-20 16:44:44 +02:00
parent a408cae686
commit fee786f1c8
3 changed files with 17 additions and 9 deletions

View File

@ -92,11 +92,12 @@ export default {
async submitFormEdit() {
this.showErrorMessage = false
this.showSuccessMessage = false
const userId = store.state.currentUserId
try {
const body = JSON.stringify(this.profile)
const response = await fetch(
`${this.apiUrl}/users/${store.currentUserId}/profile`,
`${this.apiUrl}/users/${userId}/profile`,
{
method: 'POST',
headers: {