update user host

This commit is contained in:
Junlai
2023-04-04 03:34:33 +00:00
parent 7d7f3716be
commit 22ec525618
9 changed files with 52 additions and 4 deletions

View File

@@ -372,6 +372,20 @@ export function Settings(props: { closeSettings: () => void }) {
<></>
)}
<SettingItem
title={Locale.Settings.Host.Title}
subTitle={Locale.Settings.Host.SubTitle}
>
<input
value={accessStore.host}
type="text"
placeholder={Locale.Settings.Host.Placeholder}
onChange={(e) => {
accessStore.updateHost(e.currentTarget.value);
}}
></input>
</SettingItem>
<SettingItem
title={Locale.Settings.Token.Title}
subTitle={Locale.Settings.Token.SubTitle}