wangfei 6 lat temu
rodzic
commit
ded42168cc
1 zmienionych plików z 5 dodań i 4 usunięć
  1. 5
    4
      src/pages/system/newOrder/newOrderList/index.vue

+ 5
- 4
src/pages/system/newOrder/newOrderList/index.vue Wyświetl plik

@@ -127,10 +127,6 @@ export default {
127 127
     },
128 128
   },
129 129
   created () {
130
-    this.lodop = getLodop()
131
-    this.lodop.PRINT_INIT('城咖啡订单')
132
-    this.lodop.SET_PRINT_PAGESIZE(3, 480, 40, '')
133
-
134 130
     this.updateSystemInfo().then(() => {
135 131
       console.log(this.CaseId)
136 132
       if (this.CaseId) {
@@ -144,6 +140,11 @@ export default {
144 140
       autoConnect: true,
145 141
     })
146 142
   },
143
+  mounted () {
144
+    this.lodop = getLodop()
145
+    this.lodop.PRINT_INIT('城咖啡订单')
146
+    this.lodop.SET_PRINT_PAGESIZE(3, 480, 40, '')
147
+  },
147 148
   beforeDestroyed () {
148 149
     this.ws.close()
149 150
   },