this.$message.success('登录成功').showClose = true 就这么简单在success/warning/info/error之后,只需.showClose = true,完美解决