From 60bfd92a68f9102ae1fc43bc110bf42113b66b9a Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Fri, 16 Aug 2024 17:18:53 +0800 Subject: [PATCH] fetch profile use no proxy --- src/main/config/profile.ts | 13 +++-- .../components/profiles/edit-info-modal.tsx | 58 +++++++++++-------- src/renderer/src/pages/profiles.tsx | 39 ++++++++----- src/shared/types.d.ts | 1 + 4 files changed, 68 insertions(+), 43 deletions(-) diff --git a/src/main/config/profile.ts b/src/main/config/profile.ts index 2bc23ea..cbd3a38 100644 --- a/src/main/config/profile.ts +++ b/src/main/config/profile.ts @@ -103,6 +103,7 @@ export async function createProfile(item: Partial): Promise): Promise = (props) => { /> {values.type === 'remote' && ( - - { - setValues({ ...values, url: v }) - }} - /> - - )} - {values.type === 'remote' && ( - - { - setValues({ ...values, interval: parseInt(v) }) - }} - /> - + <> + + { + setValues({ ...values, url: v }) + }} + /> + + + { + setValues({ ...values, useProxy: v }) + }} + /> + + + { + setValues({ ...values, interval: parseInt(v) }) + }} + /> + + )}