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