From 8787ce73d59e396d3d7b36ab4efa6ac1ad285067 Mon Sep 17 00:00:00 2001 From: 7c00 Date: Tue, 10 Oct 2023 16:41:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=BB=E6=AD=A2=E6=8C=89=E9=92=AE=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E4=BA=8B=E4=BB=B6=E7=A9=BF=E9=80=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 2 +- src/components/switch.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f068b37..72c9109 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@v3 - run: | - wget https://github.com/qiuxiang/genshin-maps/files/12844845/data.tar.gz + wget https://github.com/qiuxiang/ky-genshin-map/files/12854777/data.tar.gz tar xf data.tar.gz mv dist/data_pb.* src/ cp index.html dist/ diff --git a/src/components/switch.tsx b/src/components/switch.tsx index 84fd272..39a2cda 100644 --- a/src/components/switch.tsx +++ b/src/components/switch.tsx @@ -22,7 +22,8 @@ export function Switch({ "gap-2 flex items-center", props.className as string )} - onClick={() => { + onClick={(event) => { + event.stopPropagation(); setValue(!value); onChange(!value); }}