diff --git a/src/views/template/scan.vue b/src/views/template/scan.vue index 14b1fb8f..9aa416b4 100644 --- a/src/views/template/scan.vue +++ b/src/views/template/scan.vue @@ -22,7 +22,11 @@ export default { type:{ type:String, default:'' - } + }, + closeNow:{ + type:Boolean, + default:false + }, }, data(){ return{ @@ -40,13 +44,15 @@ export default { return this; }, codeTextChange(){ - console.log('this.codeText',this.codeText); + // console.log('this.codeText',this.codeText); this.$emit('closed',this.codeText); - this.closed(); + this.codeText = ''; + this.visible = !this.closeNow; + // this.closed(); }, closed(){ this.codeText = ''; - // this.visible = false; + this.visible = !this.closeNow; } } }