Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
popupAlerts () {
alertManager.success('The task was successfully completed!', 'Success', {
ok: () => {
this.$alert('This alert box will be closed after 3 seconds.')
return new Promise(resolve => {
setTimeout(() => {
resolve()
}, 3000)
})
}
})
alertManager.info('The task has been completed thirty percent.', 'Info')
alertManager.error('Something went wrong!', 'Error')
alertManager.warn('The name is invalid.', 'Warn')
},
popupConfirms () {
popupAlerts () {
alertManager.success('The task was successfully completed!', 'Success', {
ok: () => {
this.$alert('This alert box will be closed after 3 seconds.')
return new Promise(resolve => {
setTimeout(() => {
resolve()
}, 3000)
})
}
})
alertManager.info('The task has been completed thirty percent.', 'Info')
alertManager.error('Something went wrong!', 'Error')
alertManager.warn('The name is invalid.', 'Warn')
},
popupConfirms () {
popupAlerts () {
alertManager.success('成功了', '成功标题', {
ok () {
alert('祝贺你成功了!')
}
})
alertManager.info('提示信息', '提示标题')
alertManager.error('出错了', '出错标题')
},
popupConfirms () {