let me=this;
let notifyObj=this.$notify({
type: code==200?'success':'error',
title: title,
dangerouslyUseHTMLString: true,
message: '<div style="width=120px;word-break:break-all;word-wrap:break-word;">'+'"'+data.fileName+'"'+msg+'</div>'+'<a href="javascript:void(0);">下载</a>',
position: 'bottom-right',
duration: 0,
onClick:function(){
//跳转到导出列表,并同时下载文件
me.$router.push('/export/exportRecord?id='+data.exportRecordId);
me.handleDownload(data);
notifyObj.close();
},
});
elementUI的notify组件的使用,点击事件和内容自动换行
最新推荐文章于 2024-11-05 13:48:17 发布