fix: router

This commit is contained in:
xiaoxian521
2021-12-13 23:25:27 +08:00
parent b251f8ff79
commit 81bf66eca9
6 changed files with 91 additions and 24 deletions

View File

@@ -12,7 +12,7 @@ function toDetail(index: number) {
path: `/tabs/detail`,
parentPath: route.matched[0].path,
name: "tabDetail",
query: { id: index },
query: { id: String(index) },
meta: {
title: { zh: `No.${index} - 详情信息`, en: `No.${index} - DetailInfo` },
showLink: false,
@@ -21,7 +21,7 @@ function toDetail(index: number) {
realPath: "/tabs/detail"
}
});
router.push({ name: "tabDetail", query: { id: index } });
router.push({ name: "tabDetail", query: { id: String(index) } });
}
</script>