Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
046e6ce5
authored
Nov 16, 2024
by
LesanOuO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 当id为雪花id时无法传递id至路由
parent
52a8c46a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/views/bpm/form/index.vue
+2
-1
No files found.
src/views/bpm/form/index.vue
View file @
046e6ce5
...
@@ -143,8 +143,9 @@ const openForm = (id?: number) => {
...
@@ -143,8 +143,9 @@ const openForm = (id?: number) => {
const
toRouter
:
{
name
:
string
;
query
?:
{
id
:
number
}
}
=
{
const
toRouter
:
{
name
:
string
;
query
?:
{
id
:
number
}
}
=
{
name
:
'BpmFormEditor'
name
:
'BpmFormEditor'
}
}
console
.
log
(
typeof
id
)
// 表单新建的时候id传的是event需要排除
// 表单新建的时候id传的是event需要排除
if
(
typeof
id
===
'number'
)
{
if
(
typeof
id
===
'number'
||
typeof
id
===
'string'
)
{
toRouter
.
query
=
{
toRouter
.
query
=
{
id
id
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment