Update obaa.js

store.set 报错:Cannot redefine property
This commit is contained in:
Ash 2021-02-24 16:31:55 +08:00 committed by GitHub
parent a94e1dcaca
commit 583b3e8106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ export default function obaa(target, arr, callback) {
var self = this
var currentValue = (target.$observeProps[prop] = target[prop])
Object.defineProperty(target, prop, {
configurable: true,
get: function () {
return this.$observeProps[prop]
},