瀏覽代碼

feat: 移动端client关注逻辑调整

cuiyalong 1 年之前
父節點
當前提交
11b36b1563
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      apps/mobile/src/composables/quick-monitor/component/QuickMonitor.vue

+ 3 - 2
apps/mobile/src/composables/quick-monitor/component/QuickMonitor.vue

@@ -176,6 +176,7 @@ export default {
   computed: {
     ...mapGetters('user', [
       'isLogin',
+      'isFree',
       'isMember',
       'isBusiness',
       'isNewBusiness',
@@ -345,7 +346,7 @@ export default {
 
       // 采购单位监控,仅大会员和商机管理可用
       if (this.conf.freeSource) {
-        if (!this.isMemberOrBusiness) {
+        if (this.isFree) {
           if (this.beforeLeavePage) {
             await this.beforeLeavePage()
           }
@@ -374,7 +375,7 @@ export default {
         } else {
           // 判断是否超出可监控项目个数
           if (data?.limit_count) {
-            if (this.isMemberOrBusiness) {
+            if (!this.isFree) {
               const count = data?.limit_count || 0
               this.concatKfDialog({
                 title: `监控${this.conf.key}个数已达上限`,