From f3aea5bf88f27782480a9d210ba4b4af9febc8a9 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 7 Feb 2025 16:58:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=89=AB=E7=A0=81=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=8E=A5=E6=94=B6=E7=AB=8B=E5=8D=B3=E5=85=B3=E9=97=AD=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/template/scan.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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; } } }