wangfei 6 년 전
부모
커밋
ded42168cc
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5
    4
      src/pages/system/newOrder/newOrderList/index.vue

+ 5
- 4
src/pages/system/newOrder/newOrderList/index.vue 파일 보기

@@ -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
   },