Commit f3d82d77 by chenwq

fix: 修复路由跳转时未传递参数的问题

在路由跳转时添加参数传递功能,确保跳转时可以携带item.params参数
1 parent 41b8bd12
......@@ -595,7 +595,9 @@ Page({
if (item.url === 'tabWorkOrder.createOrder') {
this.setData({ showPromptDialog: true, sceneObj: {} })
} else {
wx.$router.go(item.url)
wx.$router.go(item.url, {
params: item.params || {},
})
}
}
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!