瀏覽代碼

签到管理 签到配置 连续签到奖励上限不能超过签到周期

DESKTOP-O04BTUJ\muzen 2 年之前
父節點
當前提交
68ccb1daa8
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/views/registration/regConfig/index.vue

+ 1 - 2
src/views/registration/regConfig/index.vue

@@ -137,7 +137,7 @@ export default {
     'form.pointConfigContinueRList': {
       handler(val) {
         // 当连续签到已达基础签到周期上限则禁止添加新数据
-        this.continuePush = val.findIndex(i => i.signDay === this.form.signDay) !== -1 ? true : false
+        this.continuePush = val.length < this.form.signDay ? val.findIndex(i => i.signDay === this.form.signDay) !== -1 ? true : false : true
       },
       deep: true
     },
@@ -173,7 +173,6 @@ export default {
           rewardPoint: undefined,
           status: 1,
         })
-        console.log(this.form.pointConfigContinueRList);
       } else {
         this.form.pointConfigListenGoodList.push({
           listenTime: undefined,