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

This commit is contained in:
LesanOuO 2024-11-16 14:37:42 +08:00
parent 52a8c46a0a
commit 046e6ce5a7

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
}