Commit 856cf774f1113e0e8d0a3188ba536ffc5352f89b

Authored by 梁灏
1 parent 6e97df10

close #5313

just remore the cache
Showing 1 changed file with 8 additions and 11 deletions   Show diff stats
src/components/form/form-item.vue
@@ -114,19 +114,16 @@ @@ -114,19 +114,16 @@
114 // } 114 // }
115 // return parent; 115 // return parent;
116 // }, 116 // },
117 - fieldValue: {  
118 - cache: false,  
119 - get() {  
120 - const model = this.form.model;  
121 - if (!model || !this.prop) { return; } 117 + fieldValue () {
  118 + const model = this.form.model;
  119 + if (!model || !this.prop) { return; }
122 120
123 - let path = this.prop;  
124 - if (path.indexOf(':') !== -1) {  
125 - path = path.replace(/:/, '.');  
126 - }  
127 -  
128 - return getPropByPath(model, path).v; 121 + let path = this.prop;
  122 + if (path.indexOf(':') !== -1) {
  123 + path = path.replace(/:/, '.');
129 } 124 }
  125 +
  126 + return getPropByPath(model, path).v;
130 }, 127 },
131 labelStyles () { 128 labelStyles () {
132 let style = {}; 129 let style = {};