security: 讯飞配置输入框增加密码隐藏+防复制+防自动填充

This commit is contained in:
2026-04-20 02:21:09 +08:00
parent c544483705
commit 5f68f4b820

View File

@@ -442,7 +442,10 @@ export default function SystemSettings() {
const next = { ...(settings.xfSpeechConfig || { appId: '', apiKey: '', apiSecret: '' }), appId: e.target.value }; const next = { ...(settings.xfSpeechConfig || { appId: '', apiKey: '', apiSecret: '' }), appId: e.target.value };
setSettings({ ...settings, xfSpeechConfig: next }); setSettings({ ...settings, xfSpeechConfig: next });
}} }}
placeholder="e0fe23e3" onCopy={(e) => e.preventDefault()}
onCut={(e) => e.preventDefault()}
autoComplete="new-password"
placeholder="********"
className="input-minimal" className="input-minimal"
/> />
</div> </div>
@@ -455,7 +458,10 @@ export default function SystemSettings() {
const next = { ...(settings.xfSpeechConfig || { appId: '', apiKey: '', apiSecret: '' }), apiKey: e.target.value }; const next = { ...(settings.xfSpeechConfig || { appId: '', apiKey: '', apiSecret: '' }), apiKey: e.target.value };
setSettings({ ...settings, xfSpeechConfig: next }); setSettings({ ...settings, xfSpeechConfig: next });
}} }}
placeholder="7fd08be316718c2280e85af4fe126306" onCopy={(e) => e.preventDefault()}
onCut={(e) => e.preventDefault()}
autoComplete="new-password"
placeholder="********************************"
className="input-minimal" className="input-minimal"
/> />
</div> </div>
@@ -468,7 +474,10 @@ export default function SystemSettings() {
const next = { ...(settings.xfSpeechConfig || { appId: '', apiKey: '', apiSecret: '' }), apiSecret: e.target.value }; const next = { ...(settings.xfSpeechConfig || { appId: '', apiKey: '', apiSecret: '' }), apiSecret: e.target.value };
setSettings({ ...settings, xfSpeechConfig: next }); setSettings({ ...settings, xfSpeechConfig: next });
}} }}
placeholder="ZGI5MjAzZDA0YzYwNDhjMWZiNTM2NDE0" onCopy={(e) => e.preventDefault()}
onCut={(e) => e.preventDefault()}
autoComplete="new-password"
placeholder="********************************"
className="input-minimal" className="input-minimal"
/> />
</div> </div>