(vue前端)對操作進行檢測,通過elementui-Notify來展示並提供跳轉 阿新 • • 發佈:2021-10-28 檢測操作程式碼 跳出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', });