fix: join link in SignInLink
This commit is contained in:
@@ -10,7 +10,7 @@ export default function SignInLink({ token }: { token?: string }) {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// 移动端访问,则跳转
|
// 移动端访问,则跳转
|
||||||
if (isMobile() && !!token && ctx == "app") {
|
if (isMobile() && !!token && ctx == "app") {
|
||||||
location.href = `https://join.voce.chat/download?link=${encodeURIComponent(`${location.origin}&magic_token=${token}`)}`;
|
location.href = `https://join.voce.chat/download?link=${encodeURIComponent(`${location.origin}?magic_token=${token}`)}`;
|
||||||
}
|
}
|
||||||
}, [token, ctx]);
|
}, [token, ctx]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user