Sfoglia il codice sorgente

feat(活动-邀请好友): 活动状态

zengzhixiang 2 anni fa
parent
commit
6f50db2acb
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      pages/activity/invite-user/index.vue

+ 3 - 0
pages/activity/invite-user/index.vue

@@ -172,6 +172,9 @@ export default {
         if (this.data.status === 2) {
           throw new Error('当前活动未开启');
         }
+        if (this.data.status === 3) {
+          throw new Error('当前活动已结束');
+        }
         throw new Error('未知活动状态');
       }