提交 224a23e5 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor(watch options): 优化非空判断

上级 52073af8
......@@ -156,7 +156,7 @@
watch: {
obj: {
handler(obj : Obj, prevObj ?: Obj) {
if (prevObj === null) {
if (prevObj == null) {
this.watchObjRes = `obj: {"num":${obj.num},"str":"${obj.str}","bool":${obj.bool},"arr":${JSON.stringify(obj.arr)}}, prevObj: ${JSON.stringify(prevObj)}`
} else {
// #ifdef WEB
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部