优化细节
This commit is contained in:
@@ -96,11 +96,11 @@ const inviteLink = ref('')
|
|||||||
|
|
||||||
// 生成邀请链接
|
// 生成邀请链接
|
||||||
const generateInviteLink = () => {
|
const generateInviteLink = () => {
|
||||||
const userId = userStore.user?.id || userStore.user?.user_id || 'guest'
|
const userId = userStore.user?.id || 'guest'
|
||||||
console.log(userStore.user.id,userStore.user.user_id)
|
console.log(userId)
|
||||||
const baseUrl = `${window.location.origin}/frontend`
|
const baseUrl = `${window.location.origin}/frontend`
|
||||||
// return `${baseUrl}/register?inviter=${userId}`
|
// return `${baseUrl}/register?inviter=${userId}`// 实施用
|
||||||
return `http://192.168.1.124:5173/register?inviter=${userId}`
|
return `http://192.168.1.124:5173/register?inviter=${userId}`// 测试用
|
||||||
}
|
}
|
||||||
|
|
||||||
// 生成二维码
|
// 生成二维码
|
||||||
@@ -166,7 +166,7 @@ onMounted(() => {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.distribution-page {
|
.distribution-page {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background-color: #f5f5f5;
|
background: linear-gradient(to bottom, #72c9ffae, #f3f3f3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
|
|||||||
Reference in New Issue
Block a user