Commit c07609b8 authored by cinwell.li's avatar cinwell.li Committed by baiyaaaaa

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

parent c6727276
...@@ -87,14 +87,14 @@ TableStore.prototype.mutations = { ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment