Browse Source

!442 update public/assets/js/require-table.js.
Merge pull request !442 from 御宅男(YznCMS官方)/N/A

Karson 5 months ago
parent
commit
4fd2558a8b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/assets/js/require-table.js

+ 1 - 1
public/assets/js/require-table.js

@@ -805,7 +805,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
                         display = __(value.charAt(0).toUpperCase() + value.slice(1));
                     }
                     var html = '<span class="text-' + color + '">' + (icon ? '<i class="' + icon + '"></i> ' : '') + display + '</span>';
-                    if (this.operate != false) {
+                    if (typeof this.operate !== 'undefined' && this.operate != false) {
                         html = '<a href="javascript:;" class="searchit" data-toggle="tooltip" title="' + __('Click to search %s', display) + '" data-field="' + this.field + '" data-value="' + value + '">' + html + '</a>';
                     }
                     return html;