fix: handle authorization code format in ExchangeCode function and update placeholder in EditChannelModal

This commit is contained in:
Seefs
2025-07-31 21:27:24 +08:00
parent 345fbdf3d2
commit 6f56696af2
2 changed files with 10 additions and 4 deletions

View File

@@ -57,7 +57,6 @@ import {
IconSetting,
} from '@douyinfe/semi-icons';
import React, { useEffect, useMemo, useRef, useState } from 'react';
import { copy, getChannelIcon, getChannelModels, getModelCategories, modelSelectFilter } from '../../../../helpers';
import { useIsMobile } from '../../../../hooks/common/useIsMobile.js';
import { useTranslation } from 'react-i18next';
@@ -1853,7 +1852,7 @@ const EditChannelModal = (props) => {
<Input
value={authorizationCode}
onChange={setAuthorizationCode}
placeholder={t('请输入授权码或回调URL')}
placeholder={t('请输入授权码')}
showClear
style={{ width: '100%' }}
/>