@codernote/record-tree 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -666,10 +666,10 @@ const W = {
|
|
|
666
666
|
},
|
|
667
667
|
watch: {
|
|
668
668
|
note: {
|
|
669
|
-
handler(t) {
|
|
670
|
-
if (
|
|
669
|
+
handler(t, e) {
|
|
670
|
+
if (t.content && (!this.noteId || this.noteId !== t.id || t.content !== (e == null ? void 0 : e.content)))
|
|
671
671
|
try {
|
|
672
|
-
this.noteId =
|
|
672
|
+
this.noteId = t.id, this.curNodes = JSON.parse(t.content), this.curNodes.length || this.curNodes.push({
|
|
673
673
|
text: "",
|
|
674
674
|
uuid: p()
|
|
675
675
|
});
|