优化登录页

This commit is contained in:
jingrow 2025-12-27 21:51:13 +08:00
parent 6fe6963b7a
commit fd70b4149d
2 changed files with 9 additions and 3061 deletions

File diff suppressed because it is too large Load Diff

View File

@ -137,13 +137,18 @@ onMounted(async () => {
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
// Content-Type JSON
const contentType = response.headers.get('content-type')
if (contentType && contentType.includes('application/json')) {
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)
//
// console.error('Failed to get server config:', error)
}
})
</script>