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({