src/composables/messageBox.js
@@ -15,7 +15,7 @@ let msg = `已${doneMsg}` if (typeof onConfirm === 'function') { const str = await onConfirm(); if (str && str != '') { if (typeof str === 'string' && str != '') { msg = `已${doneMsg}, ${str}` } } @@ -24,7 +24,7 @@ message: msg, type: 'success', // offset: 170, position: 'bottom-left', position: 'top-right', }); }) .catch((err) => { @@ -34,7 +34,7 @@ } ElMessage({ message: errStr, type: 'warning', type: 'error', }); }); }