diff --git a/src/views/HomePage.vue b/src/views/HomePage.vue index 3994990..61ac3b3 100644 --- a/src/views/HomePage.vue +++ b/src/views/HomePage.vue @@ -24,7 +24,7 @@ const loginFormRef = ref() const signupFormRef = ref() const loginLoading = ref(false) const signupLoading = ref(false) -const showSignupLink = ref(false) +const showSignupLink = ref(true) // 登录表单 const loginFormData = reactive({ @@ -991,18 +991,6 @@ onMounted(async () => { // 初始化认证状态 await authStore.initAuth() - // 检查服务器配置,判断是否显示注册链接 - try { - const response = await fetch('/jingrow/server-config') - if (response.ok) { - const data = await response.json() - if (data.success && data.jingrow_server_url === 'https://cloud.jingrow.com') { - showSignupLink.value = true - } - } - } catch (error) { - console.error('Failed to get server config:', error) - } // 检测移动端 checkIsMobile() diff --git a/src/views/auth/Login.vue b/src/views/auth/Login.vue index 8226351..2adac8b 100644 --- a/src/views/auth/Login.vue +++ b/src/views/auth/Login.vue @@ -82,7 +82,7 @@ const authStore = useAuthStore() const formRef = ref() const loading = ref(false) -const showSignupLink = ref(false) +const showSignupLink = ref(true) const formData = reactive({ username: '', @@ -133,18 +133,6 @@ onMounted(async () => { return } - // 检查服务器配置,判断是否显示注册链接 - try { - const response = await fetch('/jingrow/server-config') - if (response.ok) { - const data = await response.json() - if (data.success && data.jingrow_server_url === 'https://cloud.jingrow.com') { - showSignupLink.value = true - } - } - } catch (error) { - console.error('Failed to get server config:', error) - } })