mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-05 04:18:40 +02:00
Vue: fix usercard 'name' prop mutation
This commit is contained in:
parent
cb5d6774e2
commit
1ffa5355be
1 changed files with 3 additions and 2 deletions
|
@ -11,6 +11,7 @@ export default {
|
||||||
},
|
},
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
|
username: this.name,
|
||||||
errorMsg: "aaa",
|
errorMsg: "aaa",
|
||||||
user_followed: this.followed,
|
user_followed: this.followed,
|
||||||
user_banned: this.banned,
|
user_banned: this.banned,
|
||||||
|
@ -73,7 +74,7 @@ export default {
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.show_username_form = false
|
this.show_username_form = false
|
||||||
this.$emit('updateInfo')
|
this.$emit('updateInfo')
|
||||||
this.name = this.newUsername
|
this.username = this.newUsername
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -89,7 +90,7 @@ export default {
|
||||||
<div class="col-5">
|
<div class="col-5">
|
||||||
<div class="card-body h-100 d-flex align-items-center">
|
<div class="card-body h-100 d-flex align-items-center">
|
||||||
<a @click="visit">
|
<a @click="visit">
|
||||||
<h5 class="card-title mb-0">{{ name }}</h5>
|
<h5 class="card-title mb-0">{{ username }}</h5>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue