Skip to content

Commit

Permalink
fix: 处理手动删除 Gist 之后, Sub-Store 侧重新同步的逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Apr 23, 2024
1 parent 59d8567 commit b98dd14
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.229",
"version": "2.14.230",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
date: 2024-04-22
date: 2024-04-23
---

### 阶段性更新汇总
Expand All @@ -8,6 +8,7 @@ date: 2024-04-22

Telegram 频道 https://t.me/cool_scripts 内有每次更新的详细说明

- 处理手动删除 Gist 之后, Sub-Store 侧重新同步的逻辑

- QX 输出正式支持 VLESS

Expand Down
3 changes: 3 additions & 0 deletions src/components/ArtifactsListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -458,6 +460,7 @@ const onClickSync = async () => {
id: "sync-toast",
});
await artifactsStore.syncOneArtifact(artifact.value.name);
await settingsStore.fetchSettings();
Toast.hide("sync-toast");
};
Expand Down
1 change: 1 addition & 0 deletions src/views/Sync.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b98dd14

Please sign in to comment.