|
@@ -33,7 +33,7 @@ class MonitorApiBase {
|
|
data: {}
|
|
data: {}
|
|
}
|
|
}
|
|
|
|
|
|
- const doAction = follow ? this.ajaxRemove : this.ajaxAdd
|
|
|
|
|
|
+ const doAction = follow ? this.ajaxRemove.bind(this) : this.ajaxAdd.bind(this)
|
|
result = await doAction()
|
|
result = await doAction()
|
|
if (result.success) {
|
|
if (result.success) {
|
|
this.model.follow = !follow
|
|
this.model.follow = !follow
|