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

Form: fix initial error message

parent b05462a6
...@@ -73,9 +73,12 @@ ...@@ -73,9 +73,12 @@
size: String size: String
}, },
watch: { watch: {
error(value) { error: {
immediate: true,
handler(value) {
this.validateMessage = value; this.validateMessage = value;
this.validateState = value ? 'error' : ''; this.validateState = value ? 'error' : '';
}
}, },
validateStatus(value) { validateStatus(value) {
this.validateState = 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