- 檢測操作代碼
- 跳出notify
- 展示結果
// 跳框
const notify = this.$notify({
type: "warning",
dangerouslyUseHTMLString: true,
title: "提示",
message:
'<p>檢測到您扔有題未設定答案類型,<span style="color:#0066ff;cursor:pointer">請點擊處理</span>!</p>',
duration: 0,
});
// 抓取點擊事件操作
notify.$el.querySelector("span").onclick = () => {
// your code
_this.$router.push({
path: "/data/resultProcess",
query: { projectKey: this.project_key },
});
// 點擊后關閉notify 不需要的話可刪掉
notify.close();
_this.$notify({
type: "warning",
title: "以下為未處理項目",
message: this.needProcessItem,
duration: 0,
// position:'bottom-right',
});