mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 10:48:32 +08:00
fix: adjust update profile notice error
This commit is contained in:
1 parent
3311b5a6e3
commit
7d752443ca
1 file changed
+4
-1
@@ -137,7 +137,10 @@ const ProfileItem = (props: Props) => {
|
||||
await updateProfile(itemData.uid, { with_proxy: withProxy });
|
||||
mutate("getProfiles");
|
||||
} 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 {
|
||||
setLoadingCache((cache) => ({ ...cache, [itemData.uid]: false }));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user