+
+ {t('调用次数排行')}
+
+ } itemKey="4" />
}
>
- {activeChartTab === '1' ? (
+ {activeChartTab === '1' && (
- ) : (
+ )}
+ {activeChartTab === '2' && (
+
+ )}
+ {activeChartTab === '3' && (
)}
+ {activeChartTab === '4' && (
+
+ )}
diff --git a/web/src/pages/Home/index.js b/web/src/pages/Home/index.js
index 7cc4b792..f2db769c 100644
--- a/web/src/pages/Home/index.js
+++ b/web/src/pages/Home/index.js
@@ -272,10 +272,7 @@ const Home = () => {
className="w-full h-screen border-none"
/>
) : (
-
+
)}
)}
diff --git a/web/src/pages/Setting/Ratio/UpstreamRatioSync.js b/web/src/pages/Setting/Ratio/UpstreamRatioSync.js
index 0794d606..ad9c5379 100644
--- a/web/src/pages/Setting/Ratio/UpstreamRatioSync.js
+++ b/web/src/pages/Setting/Ratio/UpstreamRatioSync.js
@@ -373,7 +373,7 @@ export default function UpstreamRatioSync(props) {
}
- className="!rounded-full w-full md:w-auto mt-2"
+ className="w-full md:w-auto mt-2"
onClick={() => {
setModalVisible(true);
if (allChannels.length === 0) {
@@ -393,7 +393,7 @@ export default function UpstreamRatioSync(props) {
type='secondary'
onClick={applySync}
disabled={!hasSelections}
- className="!rounded-full w-full md:w-auto mt-2"
+ className="w-full md:w-auto mt-2"
>
{t('应用同步')}
@@ -406,7 +406,7 @@ export default function UpstreamRatioSync(props) {
placeholder={t('搜索模型名称')}
value={searchKeyword}
onChange={setSearchKeyword}
- className="!rounded-full w-full sm:w-64"
+ className="w-full sm:w-64"
showClear
/>
@@ -414,7 +414,7 @@ export default function UpstreamRatioSync(props) {
placeholder={t('按倍率类型筛选')}
value={ratioTypeFilter}
onChange={setRatioTypeFilter}
- className="!rounded-full w-full sm:w-48"
+ className="w-full sm:w-48"
showClear
onClear={() => setRatioTypeFilter('')}
>
@@ -704,7 +704,6 @@ export default function UpstreamRatioSync(props) {
scroll={{ x: 'max-content' }}
size='middle'
loading={loading || syncLoading}
- className="rounded-xl overflow-hidden"
/>
);
};
diff --git a/web/src/pages/User/EditUser.js b/web/src/pages/User/EditUser.js
index deaefb6a..4a8f46e9 100644
--- a/web/src/pages/User/EditUser.js
+++ b/web/src/pages/User/EditUser.js
@@ -22,6 +22,7 @@ import {
Row,
Col,
Input,
+ InputNumber,
} from '@douyinfe/semi-ui';
import {
IconUser,
@@ -39,7 +40,7 @@ const EditUser = (props) => {
const userId = props.editingUser.id;
const [loading, setLoading] = useState(true);
const [addQuotaModalOpen, setIsModalOpen] = useState(false);
- const [addQuotaLocal, setAddQuotaLocal] = useState('0');
+ const [addQuotaLocal, setAddQuotaLocal] = useState('');
const [groupOptions, setGroupOptions] = useState([]);
const formApiRef = useRef(null);
@@ -254,7 +255,6 @@ const EditUser = (props) => {
field='quota'
label={t('剩余额度')}
placeholder={t('请输入新的剩余额度')}
- min={0}
step={500000}
extraText={renderQuotaWithPrompt(values.quota || 0)}
rules={[{ required: true, message: t('请输入额度') }]}
@@ -328,18 +328,19 @@ const EditUser = (props) => {
const current = formApiRef.current?.getValue('quota') || 0;
return (
- {`${t('新额度')}${renderQuota(current)} + ${renderQuota(addQuotaLocal)} = ${renderQuota(current + parseInt(addQuotaLocal || 0))}`}
+ {`${t('新额度:')}${renderQuota(current)} + ${renderQuota(addQuotaLocal)} = ${renderQuota(current + parseInt(addQuotaLocal || 0))}`}
);
})()
}
-
>