ソースを参照

Merge pull request #6436 from wenzhixin/fix/6431

Fix/6431
文翼 3 年 前
コミット
b4ddc16dc6
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/extensions/cookie/bootstrap-table-cookie.js

+ 2 - 2
src/extensions/cookie/bootstrap-table-cookie.js

@@ -235,7 +235,7 @@ $.BootstrapTable = class extends $.BootstrapTable {
 
       this.options.cookiesEnabled = typeof this.options.cookiesEnabled === 'string' ?
         this.options.cookiesEnabled.replace('[', '').replace(']', '')
-          .replace(/'/g, '').replace(/ /g, '').toLowerCase().split(',') :
+          .replace(/'/g, '').replace(/ /g, '').split(',') :
         this.options.cookiesEnabled
 
       if (this.options.filterControl) {
@@ -486,7 +486,7 @@ $.BootstrapTable = class extends $.BootstrapTable {
     // pageSize
     this.options.pageSize = pageListCookie ? pageListCookie === this.options.formatAllRows() ? pageListCookie : +pageListCookie : this.options.pageSize
     // searchText
-    if (UtilsCookie.isCookieEnabled(this, 'bs.table.searchText') && this.options.searchText === '') {
+    if (UtilsCookie.isCookieEnabled(this, UtilsCookie.cookieIds.searchText) && this.options.searchText === '') {
       this.options.searchText = searchTextCookie ? searchTextCookie : ''
     }
     // cardView