@@ -429,7 +429,9 @@
},
async closePort() {
console.log('closePort');
- this.reader.cancel()
+ if(this.reader){
+ this.reader.cancel()
+ }
async openPort() {
console.log('openPort', navigator);
@@ -725,7 +727,9 @@
grossWeight(this.weighingList)
.toPromise()
.then((response) => {
this.$notify.success({
title: '成功',
message: '保存成功',
@@ -752,7 +756,9 @@
tare(this.weighingList)