Explorar o código

update: make the properties of the object configurable

HcySunYang %!s(int64=7) %!d(string=hai) anos
pai
achega
adb26c02d5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      docs/art/7vue-reactive.md

+ 1 - 0
docs/art/7vue-reactive.md

@@ -1256,6 +1256,7 @@ new Vue({
 const data = {}
 Object.defineProperty(data, 'getterProp', {
   enumerable: true,
+  configurable: true,
   get: () => {
     return {
       a: 1