由於layer默認的彈窗z-index爲19891014,所有在layer之上彈窗出sweetAlert,需要修改sweetalert2.css,可將其中z-index的值大於19891014即可
.swal2-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
padding: 10px;
background-color: transparent;
z-index: 19891016; }
.swal2-container:not(.in) {
pointer-events: none; }
.swal2-container.fade {
-webkit-transition: background-color .1s;
transition: background-color .1s; }
.swal2-container.in {
background-color: rgba(0, 0, 0, 0.4); }