需求:点击element-plus Notification通知组件提示内容时,跳转到对应页面或执行某些逻辑。

const toTaskCenter = () => {
ElNotification.closeAll(); // 跳转前关闭通知
router.push("/taskCenter/import");
};
// 通过onClick属性绑定点击事件
const uploadHandle = async () => {
ElNotification({
title: "温馨提示",
dangerouslyUseHTMLString: true,
message: `任务提交成功!可在 任务中心-导入任务 中查看导入进度`,
type: "success",
onClick() {
toTaskCenter();
},
});
};
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18

-
相关阅读:
【frida实战】“一行”代码教你获取WeGame平台中所有的lua脚本
java使用poi生成excel
一文读懂如何部署具有外部数据库的高可用 K3s
flink-cdc同步mysql数据到elasticsearch
关于 byte 的范围
gradle版本是7.1.3加载arr包踩坑
【Java快速复习】一.数据类型与结构设计
【EXCEL拦路虎】解决一些常遇到的excel问题
A Comprehensive Survey on Graph Neural Networks
ENVI:分类后处理_小斑块去除_Majority/Minority处理、聚类处理、过滤处理等
-
原文地址:https://blog.csdn.net/weixin_45304198/article/details/133272142