From a3d2f3f1b91e729d3b4841456276d0c2ed4681e8 Mon Sep 17 00:00:00 2001 From: 24kycj <1637269896@qq.com> Date: Tue, 18 Feb 2025 17:53:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/App.vue | 1 + src/renderer/views/dashboard/index.vue | 35 ++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/src/renderer/App.vue b/src/renderer/App.vue index 3c5fd7d..953bc9e 100644 --- a/src/renderer/App.vue +++ b/src/renderer/App.vue @@ -57,6 +57,7 @@ export default { that.$notify({ title: '温馨提示:' + currentTime, duration: 0, + showClose: false, dangerouslyUseHTMLString: true, message: `
${val.confirm}
重试
`, onClick(event) { diff --git a/src/renderer/views/dashboard/index.vue b/src/renderer/views/dashboard/index.vue index 7557d2d..e06ae58 100644 --- a/src/renderer/views/dashboard/index.vue +++ b/src/renderer/views/dashboard/index.vue @@ -482,6 +482,17 @@ export default { } this.default_cd = data.strongList this.printer_info = { ...data } + if (that.printer_info.is_set_cddev == 1) { + this.$confirm('上下光驱未设置,请前往设置', '温馨提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.goSet('/manage') + }).catch(() => { + + }); + } }, deep: true, immediate: true @@ -854,6 +865,18 @@ export default { }) return } + if (that.printer_info.is_set_cddev == 1) { + this.$confirm('上下光驱未设置,请前往设置', '温馨提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + that.goSet('/manage') + }).catch(() => { + + }); + return + } that.isNew = true that.workShow = true that.$nextTick(() => { @@ -869,6 +892,18 @@ export default { }) return } + if (that.printer_info.is_set_cddev == 1) { + this.$confirm('上下光驱未设置,请前往设置', '温馨提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + that.goSet('/manage') + }).catch(() => { + + }); + return + } that.isNew = false dialog .showOpenDialog({