div多出文字变成...
.span-content-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 118px;
display: inline-block;
}
let info = this.isAsync == true ? '正在导入,请到上传下载--结果页面查看导入结果' : '上传成功' let message = this.$message({ dangerouslyUseHTMLString: true, message: `<span>${info}</span>` }) message.$el.querySelector('span').onclick = () => { this.$router.push('/result') }
加油,愿被这世界温柔以待 ^_^