Skip to content

Commit b43f5bc

Browse files
committed
refine dynamic modal payload
1 parent c13b58a commit b43f5bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/PluginCore.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,17 @@ function createVfm(options) {
3232
}
3333
modal = Object.assign(defaultModal, modal)
3434
const id = generateId()
35-
const name = modal.bind.name || PREFIX + id
3635
this.dynamicModals.push(
3736
shallowReactive({
3837
value: true,
3938
id,
4039
...modal,
4140
component: modal.component,
4241
slots: modal.slots,
43-
bind: { ...modal.bind, name },
42+
bind: {
43+
name: PREFIX + id,
44+
...modal.bind
45+
},
4446
params: args[0]
4547
})
4648
)

0 commit comments

Comments
 (0)