Table: fix data is an array of numbers, fixed #2108 (#2576)

pull/2665/head
cinwell.li 2017-02-04 15:59:06 +08:00 committed by baiyaaaaa
parent c672727673
commit c07609b840
1 changed files with 8 additions and 8 deletions

View File

@ -87,14 +87,14 @@ TableStore.prototype.mutations = {
states._data = data; states._data = data;
states.data = sortData((data || []), states); states.data = sortData((data || []), states);
states.data.forEach((item) => { // states.data.forEach((item) => {
if (!item.$extra) { // if (!item.$extra) {
Object.defineProperty(item, '$extra', { // Object.defineProperty(item, '$extra', {
value: {}, // value: {},
enumerable: false // enumerable: false
}); // });
} // }
}); // });
this.updateCurrentRow(); this.updateCurrentRow();