wip
This commit is contained in:
parent
0766a76348
commit
9fd00d1179
51 changed files with 93 additions and 93 deletions
|
|
@ -57,7 +57,7 @@ export default Vue.extend({
|
|||
onClick() {
|
||||
this.wait = true;
|
||||
if (this.user.is_following) {
|
||||
this.api('following/delete', {
|
||||
this.$root.$data.os.api('following/delete', {
|
||||
user_id: this.user.id
|
||||
}).then(() => {
|
||||
this.user.is_following = false;
|
||||
|
|
@ -67,7 +67,7 @@ export default Vue.extend({
|
|||
this.wait = false;
|
||||
});
|
||||
} else {
|
||||
this.api('following/create', {
|
||||
this.$root.$data.os.api('following/create', {
|
||||
user_id: this.user.id
|
||||
}).then(() => {
|
||||
this.user.is_following = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue