方式一:
this.$message({
message: “提示信息”,
type: “warning”,
customClass: ‘messageIndex’
})
弹窗的层级一般是2700左右,给message增加层级3000就可以了
注意:样式需要写在公共样式的style中,写在私有的scoped中不生效
.messageIndex {
z-index: 3000 !important;
}
方式二:
也有可能是modal-append-to-body导致的
在dialog属性中增加:modal-append-to-body="false"就可以了
我的用方式一解决的
dialog弹窗层级过高挡住消息提示的问题
最新推荐文章于 2024-05-20 16:52:32 发布