Skip to content

Commit

Permalink
fix: detectSnapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Jun 26, 2024
1 parent 9ce3437 commit 8bf279e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/views/SnapshotPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { useRoute, useRouter } from 'vue-router';
import { useTitle } from '@vueuse/core';
import { gmOk } from '@/utils/gm';
import {
detectSnapshot,
exportSnapshotAsJpgUrl,
exportSnapshotAsImportId,
} from '@/utils/export';
Expand Down Expand Up @@ -76,6 +77,12 @@ onMounted(async () => {
message.error(`快照数据缺失`);
return;
}
setTimeout(() => {
const importId = importStorage[localSnapshot.id];
if (importId) {
detectSnapshot(importId);
}
}, 1000);
if (gmOk() && settingsStorage.autoUploadImport) {
// 静默生成 jpg/zip
setTimeout(async () => {
Expand Down

0 comments on commit 8bf279e

Please sign in to comment.