mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
fix: adjust update profile notice error
This commit is contained in:
@@ -137,7 +137,10 @@ const ProfileItem = (props: Props) => {
|
|||||||
await updateProfile(itemData.uid, { with_proxy: withProxy });
|
await updateProfile(itemData.uid, { with_proxy: withProxy });
|
||||||
mutate("getProfiles");
|
mutate("getProfiles");
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
Notice.error(err?.message || err.toString());
|
const errmsg = err?.message || err.toString();
|
||||||
|
Notice.error(
|
||||||
|
errmsg.replace(/error sending request for url (\S+?): /, "")
|
||||||
|
);
|
||||||
} finally {
|
} finally {
|
||||||
setLoadingCache((cache) => ({ ...cache, [itemData.uid]: false }));
|
setLoadingCache((cache) => ({ ...cache, [itemData.uid]: false }));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user