Browse Source

邀请新同事、添加分支机构:分享链接有效期改为7天

Xiao_123 4 months ago
parent
commit
a622a92fbb

+ 2 - 2
src/views/recruit/enterprise/systemManagement/groupAccount/components/link.vue

@@ -34,7 +34,7 @@ const props = defineProps({
 })
 const inviteType = props.inviteType - 0
 
-const day = 30
+const day = 7 // 链接有效期
 const code = ref('')
 const accessUrl = import.meta.env.VITE_ACCESS_BASE_URL
 const shareUrlTxt = computed(() => {
@@ -63,7 +63,7 @@ getCode()
 // 生成邀请码标识
 const getGenerateCode = async (type) => {
   try {
-    const data = await enterpriseInviteGenerateCode({ type: props.inviteType, expireDay: 30 })
+    const data = await enterpriseInviteGenerateCode({ type: props.inviteType, expireDay: day })
     if (!data) Snackbar.error('生成邀请码标识失败')
     getCode(type)
   } catch (err) {