fix: 当id为雪花id时无法传递id至路由

pull/586/head
LesanOuO 2024-11-16 14:37:42 +08:00
parent 52a8c46a0a
commit 046e6ce5a7
1 changed files with 2 additions and 1 deletions

View File

@ -143,8 +143,9 @@ const openForm = (id?: number) => {
const toRouter: { name: string; query?: { id: number } } = {
name: 'BpmFormEditor'
}
console.log(typeof id)
// idevent
if (typeof id === 'number') {
if (typeof id === 'number' || typeof id === 'string') {
toRouter.query = {
id
}