Browse Source

update: make the properties of the object configurable

HcySunYang 7 năm trước cách đây
mục cha
commit
adb26c02d5
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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