diff options
| author | Matain <[email protected]> | 2022-11-07 21:39:44 +0800 |
|---|---|---|
| committer | Matain <[email protected]> | 2022-11-07 21:39:44 +0800 |
| commit | 6d65a77afc74c73d8dec1dc7ec679b5bd0589bad (patch) | |
| tree | a16fa5653b36e4fdce7cc21775b62571d6078676 /src/components | |
| parent | 5f7b84d1da9c5f5a3c954a13a5250552972c0dd1 (diff) | |
修复config页面报错
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Config.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/Config.tsx b/src/components/Config.tsx index ee000cd..b40f9f3 100644 --- a/src/components/Config.tsx +++ b/src/components/Config.tsx @@ -195,14 +195,20 @@ function ConfigImpl({ case 'latencyTestUrl': { updateAppConfig(name, value); break; - } + } + case 'device name': + case 'interface name': + break; default: throw new Error(`unknown input name ${name}`); } }, [apiConfig, dispatch, updateAppConfig] ); - + const handlechangeDevice = { + return: configState.tun?.device + } + const handlechangeInter = {} const handleReloadConfigFile = useCallback(() => { dispatch(reloadConfigFile(apiConfig)); }, [apiConfig, dispatch]); |
