update public/assets/js/backend/index.js.

为搜索出来的结果加上图标,因为同名菜单挺多,都分散在不同菜单组中,显示图标可以用作区分

Signed-off-by: Break <breaker@wo.cn>
pull/426/head
Break 2022-12-30 16:27:13 +00:00 committed by Gitee
parent f8292a8813
commit 7e8a28cabc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'form'], functi
if (val != '') {
$("ul.sidebar-menu li a[addtabs]:not([href^='javascript:;'])").each(function () {
if ($("span:first", this).text().indexOf(val) > -1 || $(this).attr("py").indexOf(val) > -1 || $(this).attr("pinyin").indexOf(val) > -1) {
html.push('<a data-url="' + $(this).attr("href") + '" href="javascript:;">' + $("span:first", this).text() + '</a>');
html.push('<a data-url="' + $(this).attr("href") + '" href="javascript:;"><i class="'+ $('i:first', this).attr("class") +'"></i>' + $("span:first", this).text() + '</a>');
if (html.length >= 100) {
return false;
}