|
@@ -42,6 +42,10 @@ export default class MonitorProjectApi extends MonitorApiBase {
|
|
|
if (res?.data?.followId) {
|
|
|
this.fid = res.data.followId
|
|
|
}
|
|
|
+ if (result.success) {
|
|
|
+ this.model.expands.used += 1
|
|
|
+ this.model.expands.surplus = Math.max(this.model.expands.surplus - 1, 0)
|
|
|
+ }
|
|
|
return result
|
|
|
})
|
|
|
}
|
|
@@ -54,6 +58,10 @@ export default class MonitorProjectApi extends MonitorApiBase {
|
|
|
}
|
|
|
result.success = res?.error_code === 0 && res?.data === 'success'
|
|
|
result.data = res?.data
|
|
|
+ if (result.success) {
|
|
|
+ this.model.expands.surplus += 1
|
|
|
+ this.model.expands.used = Math.max(this.model.expands.used - 1, 0)
|
|
|
+ }
|
|
|
return result
|
|
|
}
|
|
|
)
|