|
@@ -16,7 +16,7 @@ export default class MonitorEntApi extends MonitorApiBase {
|
|
* @return {{}}
|
|
* @return {{}}
|
|
*/
|
|
*/
|
|
async ajaxGetState() {
|
|
async ajaxGetState() {
|
|
- return ajaxFollowEntInfo({ endId: this.id }).then((res) => {
|
|
|
|
|
|
+ return ajaxFollowEntInfo({ entId: this.id }).then((res) => {
|
|
const result = this.createModel()
|
|
const result = this.createModel()
|
|
result.canFollow = res?.data?.isShow || false
|
|
result.canFollow = res?.data?.isShow || false
|
|
result.follow = res?.data?.followed || false
|
|
result.follow = res?.data?.followed || false
|
|
@@ -34,7 +34,7 @@ export default class MonitorEntApi extends MonitorApiBase {
|
|
msg: '',
|
|
msg: '',
|
|
data: {}
|
|
data: {}
|
|
}
|
|
}
|
|
- result.success = res?.error_code === 0 && res?.data?.status === 0
|
|
|
|
|
|
+ result.success = res?.error_code === 0 && res?.data?.status
|
|
result.data = res?.data
|
|
result.data = res?.data
|
|
if (result.success) {
|
|
if (result.success) {
|
|
this.model.expands.used += 1
|
|
this.model.expands.used += 1
|