Browse Source

Fixed flat not polyfilled error in vue cli3 (#4694)

文翼 6 years ago
parent
commit
d749945ecf
2 changed files with 2 additions and 1 deletions
  1. 1 0
      CHANGELOG.md
  2. 1 1
      src/utils/index.js

+ 1 - 0
CHANGELOG.md

@@ -23,6 +23,7 @@ ChangeLog
 - **Update:** Fixed `virtualScroll` option bug with treegrid extension.
 - **Update:** Fixed input keyboard bug for mobile extension.
 - **Update:** Fixed detail view column reorder bug for reorder-columns extension.
+- **Update:** Fixed `flat` not polyfilled error in vue cli3.
 - **Update:** Removed `resetWidth` method and use `resetView` instead.
 
 ### 1.15.5

+ 1 - 1
src/utils/index.js

@@ -77,7 +77,7 @@ export default {
   },
 
   updateFieldGroup (columns) {
-    const allColumns = columns.flat()
+    const allColumns = [].concat(...columns)
 
     for (const c of columns) {
       for (const r of c) {