mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-04-13 13:09:52 +08:00
Fix global dialog
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<v-dialog
|
||||
v-bind="config.dialog"
|
||||
v-bind="config ? config.dialog : null"
|
||||
v-model="value"
|
||||
>
|
||||
<v-card v-if="!!config">
|
||||
|
||||
@@ -20,9 +20,7 @@ export const dialogStore: Module<DialogState, any> = {
|
||||
asyncShowDialog({ commit }, payload) {
|
||||
return new Promise((resolve) => {
|
||||
const options = merge({}, payload, {
|
||||
content: {
|
||||
callback: resolve,
|
||||
},
|
||||
callback: resolve,
|
||||
})
|
||||
|
||||
commit('showDialog', options);
|
||||
|
||||
Reference in New Issue
Block a user