|
@@ -86,7 +86,10 @@ export default {
|
|
|
sweepSuccess(result) {
|
|
|
const _valueAndTime = this.extractValueAndTime(result)
|
|
|
|
|
|
- if (!_valueAndTime) return this.$toast.fail('扫码的格式不正确')
|
|
|
+ if (!_valueAndTime) {
|
|
|
+ this.$refs.qrScannerRef.close()
|
|
|
+ return this.$toast.fail('扫码的格式不正确')
|
|
|
+ }
|
|
|
|
|
|
// 判断当前时间和扫码时间是否超过设置的时间
|
|
|
if (_valueAndTime.time) {
|