fix:扫码弹窗接收立即关闭参数

This commit is contained in:
shijing 2025-02-07 16:58:31 +08:00
parent 0fbd17810d
commit f3aea5bf88
1 changed files with 10 additions and 4 deletions

View File

@ -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;
}
}
}