ソースを参照

Fixed getOptions bug

zhixin 6 年 前
コミット
a5f8218676
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/bootstrap-table.js

+ 2 - 2
src/bootstrap-table.js

@@ -1930,9 +1930,9 @@ class BootstrapTable {
 
 
   getOptions () {
   getOptions () {
     // deep copy and remove data
     // deep copy and remove data
-    const options = JSON.parse(JSON.stringify(this.options))
+    const options = $.extend({}, this.options)
     delete options.data
     delete options.data
-    return options
+    return $.extend(true, {}, options)
   }
   }
 
 
   refreshOptions (options) {
   refreshOptions (options) {