mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-02 00:30:32 +00:00
fix(grok): 修正授权与模型映射边界
This commit is contained in:
@@ -678,8 +678,8 @@ const handleGrokAuthorizePassword = async (emailPasswordInput: string) => {
|
||||
if (!props.account || !isGrok.value) return
|
||||
const line = emailPasswordInput
|
||||
.split('\n')
|
||||
.map((item) => item.trim())
|
||||
.find((item) => item.includes('----'))
|
||||
// Email is normalized in the API helper, but password whitespace is valid.
|
||||
.find((item) => item.trim() && item.includes('----'))
|
||||
if (!line) {
|
||||
grokOAuth.error.value = t(
|
||||
'admin.accounts.oauth.grok.pleaseEnterPassword',
|
||||
|
||||
Reference in New Issue
Block a user