feat: Add invite link banner for specific channel type

This commit is contained in:
1808837298@qq.com
2025-02-12 17:48:48 +08:00
parent 81591f20e0
commit 6b923ef728

View File

@@ -429,6 +429,7 @@ const EditChannel = (props) => {
>
<Spin spinning={loading}>
<div style={{ marginTop: 10 }}>
<Typography.Text strong>{t('类型')}</Typography.Text>
</div>
<Select
@@ -442,6 +443,28 @@ const EditChannel = (props) => {
searchPosition='dropdown'
placeholder={t('请选择渠道类型')}
/>
{inputs.type === 40 && (
<div style={{ marginTop: 10 }}>
<Banner
type="info"
description={
<div>
<Typography.Text strong>
{t('邀请链接')}:
</Typography.Text>
<Typography.Text
link
underline
style={{marginLeft: 8}}
onClick={() => window.open('https://cloud.siliconflow.cn/i/hij0YNTZ')}
>
https://cloud.siliconflow.cn/i/hij0YNTZ
</Typography.Text>
</div>
}
/>
</div>
)}
{inputs.type === 3 && (
<>
<div style={{ marginTop: 10 }}>