|
@@ -251,7 +251,8 @@ const submitForm = async (formEl) => {
|
|
|
await formEl.validate(async (valid, fields) => {
|
|
|
if (valid) {
|
|
|
const data = cloneDeep(form.value)
|
|
|
- console.log(data)
|
|
|
+ const res = await store.update(data)
|
|
|
+ if (res.errcode === 0) search()
|
|
|
} else {
|
|
|
console.log('error submit!', fields)
|
|
|
}
|