!159 eslint升级v9版本

* update: eslint升级v9版本 & 更新一些不符合校验规则的代码
This commit is contained in:
玲娜贝er
2024-11-27 07:39:34 +00:00
committed by LiuHao
parent f3425493ed
commit 845b848b60
9 changed files with 102 additions and 36 deletions

View File

@ -66,7 +66,7 @@ const closeSearch = () => {
state.isShowSearch = false;
};
// 菜单搜索数据过滤
const menuSearch = (queryString: string, cb: Function) => {
const menuSearch = (queryString: string, cb: (options: any[]) => void) => {
let options = state.menuList.filter((item) => {
return item.title.indexOf(queryString) > -1;
});