From b98dd14ece59b99c3b0bb3051853f485bcd02d02 Mon Sep 17 00:00:00 2001 From: xream Date: Tue, 23 Apr 2024 09:29:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E5=88=A0=E9=99=A4=20Gist=20=E4=B9=8B=E5=90=8E,=20Sub-Store=20?= =?UTF-8?q?=E4=BE=A7=E9=87=8D=E6=96=B0=E5=90=8C=E6=AD=A5=E7=9A=84=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/changelogs/{2024-04-22.md => 2024-04-23.md} | 3 ++- src/components/ArtifactsListItem.vue | 3 +++ src/views/Sync.vue | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) rename src/changelogs/{2024-04-22.md => 2024-04-23.md} (95%) diff --git a/package.json b/package.json index 2489a0e1d..ba9ad91b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.229", + "version": "2.14.230", "private": true, "scripts": { "dev": "vite --host", diff --git a/src/changelogs/2024-04-22.md b/src/changelogs/2024-04-23.md similarity index 95% rename from src/changelogs/2024-04-22.md rename to src/changelogs/2024-04-23.md index 8684dc9f6..1c77349fa 100644 --- a/src/changelogs/2024-04-22.md +++ b/src/changelogs/2024-04-23.md @@ -1,5 +1,5 @@ --- -date: 2024-04-22 +date: 2024-04-23 --- ### 阶段性更新汇总 @@ -8,6 +8,7 @@ date: 2024-04-22 Telegram 频道 https://t.me/cool_scripts 内有每次更新的详细说明 +- 处理手动删除 Gist 之后, Sub-Store 侧重新同步的逻辑 - QX 输出正式支持 VLESS diff --git a/src/components/ArtifactsListItem.vue b/src/components/ArtifactsListItem.vue index bf41d71a5..ba8f81aa0 100644 --- a/src/components/ArtifactsListItem.vue +++ b/src/components/ArtifactsListItem.vue @@ -181,6 +181,7 @@ import surgeColorIcon from "@/assets/icons/surge_color.png"; import v2rayColorIcon from "@/assets/icons/v2ray_color.png"; import { useAppNotifyStore } from "@/store/appNotify"; import { useArtifactsStore } from "@/store/artifacts"; +import { useSettingsStore } from "@/store/settings"; import { useSubsStore } from "@/store/subs"; import { butifyDate } from "@/utils/butifyDate"; import { isMobile } from "@/utils/isMobile"; @@ -210,6 +211,7 @@ const { name } = defineProps<{ const { showNotify } = useAppNotifyStore(); const subsStore = useSubsStore(); const artifactsStore = useArtifactsStore(); +const settingsStore = useSettingsStore(); const { artifacts } = storeToRefs(artifactsStore); const artifact = computed(() => { return artifacts.value.find((item) => item.name === name); @@ -458,6 +460,7 @@ const onClickSync = async () => { id: "sync-toast", }); await artifactsStore.syncOneArtifact(artifact.value.name); + await settingsStore.fetchSettings(); Toast.hide("sync-toast"); }; diff --git a/src/views/Sync.vue b/src/views/Sync.vue index ca47e2d26..90d3e01b7 100644 --- a/src/views/Sync.vue +++ b/src/views/Sync.vue @@ -272,6 +272,7 @@ const uploadAllIsLoading = ref(false); const uploadAll = async () => { uploadAllIsLoading.value = true; await artifactsStore.syncAllArtifact(); + await settingsStore.fetchSettings(); uploadAllIsLoading.value = false; }; const downloadAllIsLoading = ref(false);