新增删除列表前的确认弹窗
This commit is contained in:
@@ -41,7 +41,11 @@ const dialog = {
|
||||
}
|
||||
})
|
||||
}
|
||||
dialog.confirm = options => dialog({ ...options, showCancel: true })
|
||||
dialog.confirm = options => dialog(
|
||||
typeof options == 'string'
|
||||
? { message: options, showCancel: true }
|
||||
: { ...options, showCancel: true },
|
||||
)
|
||||
|
||||
Vue.prototype.$dialog = dialog
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user