修复bug
This commit is contained in:
+30
-1
@@ -59,6 +59,16 @@ export default {
|
||||
},
|
||||
deep: true,
|
||||
immediate: true
|
||||
},
|
||||
'$store.state.chat.clearError': {
|
||||
handler(val) {
|
||||
let that = this
|
||||
if (val) {
|
||||
that.$notify.closeAll()
|
||||
}
|
||||
},
|
||||
deep: true,
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -94,8 +104,27 @@ export default {
|
||||
'确定'
|
||||
)
|
||||
]
|
||||
if (data.noJump) {
|
||||
btns = [
|
||||
that.$createElement(
|
||||
'el-button',
|
||||
{
|
||||
props: { type: 'primary', size: 'mini' },
|
||||
style: { marginLeft: '10px' },
|
||||
on: {
|
||||
click: () => {
|
||||
that.errors.splice(that.errors.indexOf(data.message), 1)
|
||||
notifyInstance.close()
|
||||
}
|
||||
}
|
||||
},
|
||||
'确定'
|
||||
)
|
||||
]
|
||||
}
|
||||
if (data.confirm) {
|
||||
btns[1] = that.$createElement(
|
||||
let index = data.noJump ? 0 : 1
|
||||
btns[index] = that.$createElement(
|
||||
'el-button',
|
||||
{
|
||||
props: { type: 'primary', size: 'mini' },
|
||||
|
||||
Reference in New Issue
Block a user