fix reset values

pull/150/merge^2
iozeey 2 years ago
parent 5c6d27bbd4
commit e6d8b8b9a8

@ -593,24 +593,24 @@ export default {
const templateValue = this.template.values[this.field.uuid] const templateValue = this.template.values[this.field.uuid]
switch (this.field.type) { switch (this.field.type) {
case 'my_signature': case 'my_signature':
this.showMySignature = false
if (this.myLocalSignatureValue === templateValue) { if (this.myLocalSignatureValue === templateValue) {
this.showMySignature = false
this.myLocalSignatureValue = '' this.myLocalSignatureValue = ''
} }
console.log('switch signature portion') console.log('switch signature portion')
break break
case 'my_initials': case 'my_initials':
this.showMyInitials = false
if (this.myLocalInitialsValue === templateValue) { if (this.myLocalInitialsValue === templateValue) {
this.showMyInitials = false
this.myLocalInitialsValue = '' this.myLocalInitialsValue = ''
} }
console.log('switch initials portion') console.log('switch initials portion')
break break
case 'my_date': case 'my_date':
this.showMyDate = false
if (this.myLocalDateValue === templateValue) { if (this.myLocalDateValue === templateValue) {
this.showMyDate = false
this.myLocalDateValue = '' this.myLocalDateValue = ''
} }
console.log('switch my_date portion') console.log('switch my_date portion')

Loading…
Cancel
Save