Skip to content

Commit

Permalink
fix: add route query
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed May 28, 2024
1 parent a88488c commit 24504da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/SnapshotPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ onMounted(async () => {
'https://detect.gkd.li/api/getImportId?id=' + snapshotId.value,
).then((r) => r.json());
if (importId) {
router.replace('/i/' + importId);
router.replace({
path: '/i/' + importId,
query: route.query,
});
return;
}
message.error(`快照数据缺失`);
Expand Down

0 comments on commit 24504da

Please sign in to comment.