change api caall

This commit is contained in:
ogerly 2021-06-08 17:09:40 +02:00
parent e804aa655c
commit a7009f935d

View File

@ -62,10 +62,8 @@ export default {
console.log('onSubmit', this.form.username)
const result = await loginAPI.changeUsernameProfile(
this.$store.state.sessionId,
this.$store.state.email,
{
username: this.form.username,
},
this.$store.state.email,
this.form.username,
)
if (result.success) {
this.$store.commit('username', this.form.username)