Merge branch 'Calcium-Ion:main' into main

This commit is contained in:
G.RQ
2024-09-19 15:19:46 +08:00
committed by GitHub

View File

@@ -439,13 +439,13 @@ const EditToken = (props) => {
optionList={models} optionList={models}
disabled={!model_limits_enabled} disabled={!model_limits_enabled}
/> />
<div style={{ marginTop: 10 }}> <div style={{ marginTop: 10 }}>
<Typography.Text>令牌分组不选为默认分组</Typography.Text> <Typography.Text>令牌分组默认为用户的分组</Typography.Text>
</div> </div>
{groups.length > 0 ?
<Select <Select
style={{ marginTop: 8 }} style={{ marginTop: 8 }}
placeholder={'令牌分组,不选为默认分组'} placeholder={'令牌分组,默认为用户的分组'}
name='gruop' name='gruop'
required required
selection selection
@@ -455,7 +455,14 @@ const EditToken = (props) => {
value={inputs.group} value={inputs.group}
autoComplete='new-password' autoComplete='new-password'
optionList={groups} optionList={groups}
/>:
<Select
style={{ marginTop: 8 }}
placeholder={'管理员未设置用户可选分组'}
name='gruop'
disabled={true}
/> />
}
</Spin> </Spin>
</SideSheet> </SideSheet>
</> </>