the element message component cannot be closed manually.
Themethod
calls Message or this.$message to return an instance of the current Message. If you need to shut down the instance manually, you can call its
close method.method name
close closes the current Message
this.$message({
message: "",
duration: 0,
showClose: true,
type: "warning"
})
I can"t close this prompt box by using this.$message (). Close () or this.$message.close () and ask the bosses to answer ~
< hr >what I use in mounted
mounted () {
this.$message({
message: "",
duration: 0,
showClose: true,
type: "warning"
})
// this.$message().close()
this.$message.close()
}
this pop-up box still cannot be closed.