Explorar el Código

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

zengzhixiang hace 2 años
padre
commit
6f50db2acb
Se han modificado 1 ficheros con 3 adiciones y 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('未知活动状态');
       }