Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ed888fb7
authored
Feb 12, 2025
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Add invite link banner for specific channel type
parent
e84d602e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
web/src/pages/Channel/EditChannel.js
+23
-0
No files found.
web/src/pages/Channel/EditChannel.js
View file @
ed888fb7
...
@@ -429,6 +429,7 @@ const EditChannel = (props) => {
...
@@ -429,6 +429,7 @@ const EditChannel = (props) => {
>
>
<
Spin
spinning
=
{
loading
}
>
<
Spin
spinning
=
{
loading
}
>
<
div
style
=
{{
marginTop
:
10
}}
>
<
div
style
=
{{
marginTop
:
10
}}
>
<
Typography
.
Text
strong
>
{
t
(
'类型'
)}
:
<
/Typography.Text
>
<
Typography
.
Text
strong
>
{
t
(
'类型'
)}
:
<
/Typography.Text
>
<
/div
>
<
/div
>
<
Select
<
Select
...
@@ -442,6 +443,28 @@ const EditChannel = (props) => {
...
@@ -442,6 +443,28 @@ const EditChannel = (props) => {
searchPosition
=
'dropdown'
searchPosition
=
'dropdown'
placeholder
=
{
t
(
'请选择渠道类型'
)}
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
&&
(
{
inputs
.
type
===
3
&&
(
<>
<>
<
div
style
=
{{
marginTop
:
10
}}
>
<
div
style
=
{{
marginTop
:
10
}}
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment