Kaynağa Gözat

打印插件未开启报错提示优化:请检查打印插件是否开启!

panxuejun 1 yıl önce
ebeveyn
işleme
6778c09476

+ 3 - 3
src/renderer/components/views/page-header.vue

@@ -37,14 +37,14 @@ export default {
       webSockBack() {
         const self = this;
         webSock.onmessage = function (e) {
-          self.$message.info('打印插件链接失败,请检查!', 2);
+          self.$message.info('请检查打印插件是否开启!', 2);
         }
         webSock.onclose = function (e) {
-          self.$message.info('打印插件链接失败,请检查!', 2);
+          self.$message.info('请检查打印插件是否开启!', 2);
         }
         //连接发生错误的回调方法
         webSock.onerror = function () {
-          self.$message.info('打印插件链接失败,请检查!', 2);
+          self.$message.info('请检查打印插件是否开启!', 2);
         }
       },
       getPrintCallback(error) {

+ 2 - 2
src/renderer/components/views/receiveDeliveryNote.vue

@@ -234,7 +234,7 @@ export default {
       const self = this
 
       if(webSock.readyState !== webSock.OPEN) {
-        this.$message.info('打印插件链接失败,请检查!', 2);
+        this.$message.info('请检查打印插件是否开启!', 2);
         return
       }
 
@@ -345,7 +345,7 @@ export default {
       const self = this
 
       if(webSock.readyState !== webSock.OPEN) {
-        this.$message.info('打印插件链接失败,请检查!', 2);
+        this.$message.info('请检查打印插件是否开启!', 2);
         return
       }
 

+ 1 - 1
src/renderer/components/views/sendDeliveryNote.vue

@@ -148,7 +148,7 @@ export default {
             const self = this
 
             if(webSock.readyState !== webSock.OPEN) {
-              this.$message.info('打印插件链接失败,请检查!', 2);
+              this.$message.info('请检查打印插件是否开启!', 2);
               return
             }
 

+ 1 - 1
src/renderer/main.js

@@ -9,7 +9,7 @@ import 'ant-design-vue/dist/antd.css';
 
 if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
 
-const API_URL = 'http://172.28.155.103:8080/BH_CLIS'
+const API_URL = 'http://172.28.155.109:8080/BH_CLIS'
 const default_login_name = 'JXAdmin'
 // axios 配置
 axios.defaults.timeout = 30000