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