shish 1 سال پیش
والد
کامیت
79f9c1090f
2فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 3 1
      hdPad/src/pages/home/components/console.vue
  2. 3 0
      hdPad/src/pages/home/components/rightItem.vue

+ 3 - 1
hdPad/src/pages/home/components/console.vue

@@ -156,9 +156,11 @@ export default {
 			this.globalHasHand = 1
 		}
 
+		this.listenScanItem()
+
 	},
 	mounted(){
-		this.listenScanItem()
+
 	},
 	destroyed(){
 	},

+ 3 - 0
hdPad/src/pages/home/components/rightItem.vue

@@ -61,6 +61,9 @@ export default {
         if(id>0){
             this.globalGetRightItem(id)
         }
+    },
+	created(){
+		this.listenScanItem()
     },
     watch:{
         customId:{