From 0831ba2645c01cf20f2a53c50a13a2c9362aa355 Mon Sep 17 00:00:00 2001
From: "1808837298@qq.com" <1808837298@qq.com>
Date: Sun, 2 Feb 2025 22:18:37 +0800
Subject: [PATCH] feat: add other_setting docs link
---
.../{orher_setting.md => other_setting.md} | 0
web/src/pages/Channel/EditChannel.js | 48 ++++++++++++-------
2 files changed, 31 insertions(+), 17 deletions(-)
rename docs/channel/{orher_setting.md => other_setting.md} (100%)
diff --git a/docs/channel/orher_setting.md b/docs/channel/other_setting.md
similarity index 100%
rename from docs/channel/orher_setting.md
rename to docs/channel/other_setting.md
diff --git a/web/src/pages/Channel/EditChannel.js b/web/src/pages/Channel/EditChannel.js
index 40f8b8eb..3e99b7da 100644
--- a/web/src/pages/Channel/EditChannel.js
+++ b/web/src/pages/Channel/EditChannel.js
@@ -982,23 +982,37 @@ const EditChannel = (props) => {
value={inputs.setting}
autoComplete="new-password"
/>
- {
- handleInputChange(
- 'setting',
- JSON.stringify({
- force_format: true
- }, null, 2)
- );
- }}
- >
- {t('填入模板')}
-
+
+ {
+ handleInputChange(
+ 'setting',
+ JSON.stringify({
+ force_format: true
+ }, null, 2)
+ );
+ }}
+ >
+ {t('填入模板')}
+
+ {
+ window.open('https://github.com/Calcium-Ion/new-api/blob/main/docs/channel/other_setting.md');
+ }}
+ >
+ {t('设置说明')}
+
+
>