Fix global dialog

This commit is contained in:
CzBiX
2020-04-28 13:30:26 +08:00
parent 08dd3981de
commit faee268555
2 changed files with 2 additions and 4 deletions

View File

@@ -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">

View File

@@ -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);