Browse Source

Merge pull request #6436 from wenzhixin/fix/6431

Fix/6431
文翼 3 years ago
parent
commit
b4ddc16dc6
1 changed files with 2 additions and 2 deletions
  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