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);