diff --git a/src/components/setting/setting-clash.tsx b/src/components/setting/setting-clash.tsx index 5e13d6b6e5c836fd5c96636f1db11b40af58b23f..3ba8cd1a43fd8193368288d00f460f7fb04d28e6 100644 --- a/src/components/setting/setting-clash.tsx +++ b/src/components/setting/setting-clash.tsx @@ -91,7 +91,8 @@ const SettingClash = ({ onError }: Props) => { <SettingItem label={t("Log Level")}> <GuardState - value={logLevel ?? "info"} + // clash premium 2022.08.26 值为warn + value={logLevel === "warn" ? "warning" : logLevel ?? "info"} onCatch={onError} onFormat={(e: any) => e.target.value} onChange={(e) => onChangeData({ "log-level": e })} @@ -100,7 +101,7 @@ const SettingClash = ({ onError }: Props) => { <Select size="small" sx={{ width: 100, "> div": { py: "7.5px" } }}> <MenuItem value="debug">Debug</MenuItem> <MenuItem value="info">Info</MenuItem> - <MenuItem value="warn">Warn</MenuItem> + <MenuItem value="warning">Warn</MenuItem> <MenuItem value="error">Error</MenuItem> <MenuItem value="silent">Silent</MenuItem> </Select>