Skip to content

Commit c502eca

Browse files
committed
add toJSON function to models
1 parent ba71770 commit c502eca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/service-module/model.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ export default function (options) {
168168
return this._remove(this[idField], params)
169169
}
170170
_remove () {}
171+
172+
toJSON () {
173+
return fastCopy(this)
174+
}
171175
}
172176

173177
Object.assign(FeathersVuexModel, {

0 commit comments

Comments
 (0)