update public/assets/js/require-table.js.

修复例如角色组,菜单规则菜单已经关闭通用搜索,但是还是状态还是显示搜索tips的bug

Signed-off-by: 御宅男 <530765310@qq.com>
pull/442/head
御宅男 2023-04-27 05:42:42 +00:00 committed by Gitee
parent cb0fbe022c
commit fe9029beac
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -706,7 +706,7 @@ define(['jquery', 'bootstrap'], function ($, undefined) {
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;