Skip to content

Commit e87cd08

Browse files
authored
fix: highlight js function fail after bind event (opentiny#1656)
1 parent 248ea16 commit e87cd08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/settings/events/src/components/BindEventsDialog.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ export default {
184184
}
185185
}
186186
187-
const activePagePlugin = () => {
187+
const activePagePlugin = (name) => {
188188
activePlugin(PLUGIN_NAME.Page).then(() => {
189189
// 确认js面板渲染完成之后再对目标函数进行高亮处理
190190
nextTick(() => {
191191
if (highlightMethod) {
192-
highlightMethod(state.bindMethodInfo?.name)
192+
highlightMethod(name)
193193
}
194194
})
195195
})
@@ -231,7 +231,7 @@ export default {
231231
232232
saveMethod?.(method)
233233
234-
activePagePlugin()
234+
activePagePlugin(name)
235235
close()
236236
}
237237

0 commit comments

Comments
 (0)