Skip to content

Commit fba52bc

Browse files
author
Kerwin
committed
fix: register
1 parent 9eb5e5b commit fba52bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

service/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ router.post('/chat-process', auth, async (req, res) => {
178178
router.post('/user-register', async (req, res) => {
179179
const { username, password } = req.body as { username: string; password: string }
180180
const config = await getCacheConfig()
181-
if (config.siteConfig.registerEnabled) {
181+
if (!config.siteConfig.registerEnabled) {
182182
res.send({ status: 'Fail', message: '注册账号功能未启用 | Register account is disabled!', data: null })
183183
return
184184
}

src/hooks/useLanguage.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { computed } from 'vue'
2-
import { enUS, zhCN, zhTW, koKR } from 'naive-ui'
2+
import { enUS, koKR, zhCN, zhTW } from 'naive-ui'
33
import { useAppStore } from '@/store'
44
import { setLocale } from '@/locales'
55

@@ -18,8 +18,8 @@ export function useLanguage() {
1818
setLocale('zh-TW')
1919
return zhTW
2020
case 'ko-KR':
21-
setLocale('ko-KR')
22-
return koKR
21+
setLocale('ko-KR')
22+
return koKR
2323
default:
2424
setLocale('zh-CN')
2525
return enUS

0 commit comments

Comments
 (0)