lilei 2 سال پیش
والد
کامیت
0294dabe6d
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  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() {