diff --git a/src/App.vue b/src/App.vue index cbf302d..3284eec 100644 --- a/src/App.vue +++ b/src/App.vue @@ -62,7 +62,10 @@ watch( async newValue => { // console.log('newValue ==> ', newValue); // console.log('JSON.parse(newValue) ==> ', JSON.parse(newValue)); - + if (!window.hiwebSocket.opened && !window.hiwebSocket.printerList?.length) { + window.$message?.error('打印失败,请连接打印机'); + return; + } if (!newValue) return; if (isValidJSON(newValue)) { // const msgData = JSON.parse(JSON.parse(newValue)); diff --git a/src/assets/img/sys.png b/src/assets/img/sys.png index efcf3d1..bea3d32 100644 Binary files a/src/assets/img/sys.png and b/src/assets/img/sys.png differ diff --git a/src/components/common/system-logo.vue b/src/components/common/system-logo.vue index f8aaaed..d3b2841 100644 --- a/src/components/common/system-logo.vue +++ b/src/components/common/system-logo.vue @@ -5,7 +5,7 @@ - +
diff --git a/src/layouts/common/global-logo/index.vue b/src/layouts/common/global-logo/index.vue index 44eeac6..4b40e3d 100644 --- a/src/layouts/common/global-logo/index.vue +++ b/src/layouts/common/global-logo/index.vue @@ -1,6 +1,6 @@