Explorar o código

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

zengzhixiang %!s(int64=2) %!d(string=hai) anos
pai
achega
6f50db2acb
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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('未知活动状态');
       }