Browse Source

fix: [data-models/quick-monitor] 修复 ent 参数问题

zhangyuhan 1 năm trước cách đây
mục cha
commit
47912c2397

+ 2 - 2
data/data-models/modules/quick-monitor/plugins/ent-api.js

@@ -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