Commit 76921e2d authored by qinhaitao's avatar qinhaitao

fix: 🐛 mockServer 更新失败提示

parent 267d37ea
......@@ -72,7 +72,7 @@ class BaseDao {
options: options || {}
})
console.log(result)
let res = result.nModified > 0 ? 1 : 0
let res = result && result.nModified > 0 ? 1 : 0
console.log(`update结果`, res)
return res
}
......
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