diff options
| author | Matain <[email protected]> | 2022-11-07 21:40:32 +0800 |
|---|---|---|
| committer | Matain <[email protected]> | 2022-11-07 21:40:32 +0800 |
| commit | 313bd6d9c97ad4df050b2ff4bfe1cebb51749bf6 (patch) | |
| tree | a9c8269a23690a3053f148dd0a866bccf6e8e003 /src | |
| parent | 6d65a77afc74c73d8dec1dc7ec679b5bd0589bad (diff) | |
修复config页面报错
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/Config.tsx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/components/Config.tsx b/src/components/Config.tsx index b40f9f3..4a1c4f9 100644 --- a/src/components/Config.tsx +++ b/src/components/Config.tsx @@ -205,10 +205,6 @@ function ConfigImpl({ }, [apiConfig, dispatch, updateAppConfig] ); - const handlechangeDevice = { - return: configState.tun?.device - } - const handlechangeInter = {} const handleReloadConfigFile = useCallback(() => { dispatch(reloadConfigFile(apiConfig)); }, [apiConfig, dispatch]); @@ -324,14 +320,18 @@ function ConfigImpl({ </div> <div> <div className={s0.label}>Device Name</div> - <Input - value={configState.tun?.device} + <Input + name='device name' + value={configState.tun?.device} + onChange={handleInputOnBlur} /> </div> <div> <div className={s0.label}>Interface Name</div> - <Input - value={configState['interface-name']} + <Input + name='interface name' + value={configState['interface-name']} + onChange={handleInputOnBlur} /> </div> </div> |
