fix: gitcode login url

This commit is contained in:
汪少伟
2025-03-15 09:16:23 +08:00
parent 2974d35726
commit 1efb34722f

View File

@@ -751,7 +751,7 @@ onBeforeUnmount(() => {
});
onMounted(() => {
const orgin = 'https://test.gitcode.net';
const orgin = 'https://gitcode.com';
window.addEventListener('message', async (event) => {
if (event.origin !== orgin) {
return; // 安全起见,检查消息来源
@@ -784,7 +784,7 @@ onUnmounted(() => {
:class="['login-modal', formType === 'login' ? 'login-modal-l' : 'login-modal-r']"
>
<template #default>
<iframe src="https://test.gitcode.net/login/?be_nested=1"></iframe>
<iframe src="https://gitcode.com/login/?be_nested=1"></iframe>
</template>
</Modal>
</template>