Commit 81ff11ad authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Form: fix initial error message

parent b05462a6
......@@ -73,9 +73,12 @@
size: String
},
watch: {
error(value) {
this.validateMessage = value;
this.validateState = value ? 'error' : '';
error: {
immediate: true,
handler(value) {
this.validateMessage = value;
this.validateState = value ? 'error' : '';
}
},
validateStatus(value) {
this.validateState = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment