diff --git a/src/views/AddPattern.vue b/src/views/AddPattern.vue index 7a510ff..f8ad008 100644 --- a/src/views/AddPattern.vue +++ b/src/views/AddPattern.vue @@ -63,11 +63,11 @@ data() { return { newPattern: { - name: String(), - value: String(), - color: String(), - searchType: String(), - directionType: String(), + name: '', + value: '', + color: '#FF7474', + searchType: 'SUBSTRING', + directionType: 'BOTH', }, }; }, @@ -77,7 +77,13 @@ }, reset() { - this.newPattern = {}; + this.newPattern = { + name: '', + value: '', + color: '#FF7474', + searchType: 'SUBSTRING', + directionType: 'BOTH', + }; }, addPattern(ev) {