lilei il y a 2 ans
Parent
commit
0294dabe6d
2 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 2 1
      pages/batchShelves/scanProduct.vue
  2. 1 1
      pages/batchShelves/searchProduct.vue

+ 2 - 1
pages/batchShelves/scanProduct.vue

@@ -101,7 +101,8 @@
 			this.layer = options.layer
 			this.shelfName = options.shelfName
 			this.customerSn = options.customerSn
-			this.fromPage = options.from
+			this.fromPage = options.from||''
+			console.log(options)
 			// 初始化摄像头
 			this.init()
 		},

+ 1 - 1
pages/batchShelves/searchProduct.vue

@@ -88,7 +88,7 @@
 			this.layer = options.layer
 			this.shelfName = options.shelfName
 			this.customerSn = options.customerSn
-			this.fromPage = options.from
+			this.fromPage = options.from||''
 			console.log(options)
 		},
 		onReady() {