Skip to content

Commit 8a39385

Browse files
author
www.xueximeng.com
committed
提词广场移动端适配
1 parent fc9089a commit 8a39385

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

frontend/src/stores/authStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const useAuthStore = defineStore('auth', () => {
2525
const user = ref<User | null>(null)
2626
const isLoading = ref(false)
2727
const authConfig = ref<{
28-
linuxdo_enabled: boolean
28+
linux_do_enabled: boolean
2929
linux_do_client_id: string
3030
linux_do_redirect_uri: string
3131
local_auth_enabled: boolean

frontend/src/stores/navigationStore.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ export const useNavigationStore = defineStore('navigation', () => {
107107
const config = authStore.authConfig
108108

109109
// 只有开启了Linux.do OAuth或允许注册时才启用社区功能
110-
// 注意字段名:linuxdo_enabled(下划线小写)和 registration_enabled
111-
communityEnabled.value = !!(config?.linuxdo_enabled || config?.registration_enabled)
110+
// 注意字段名:linux_do_enabled(下划线)和 registration_enabled
111+
communityEnabled.value = !!(config?.linux_do_enabled || config?.registration_enabled)
112112

113113
console.log('社区功能状态:', {
114-
linuxdo_enabled: config?.linuxdo_enabled,
114+
linux_do_enabled: config?.linux_do_enabled,
115115
registration_enabled: config?.registration_enabled,
116116
communityEnabled: communityEnabled.value
117117
})

0 commit comments

Comments
 (0)