Browse Source

bug 修复

lilei 2 years ago
parent
commit
0294dabe6d
2 changed files with 3 additions and 2 deletions
  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() {