fix: 解决文件搜索目录包含回收站目录能进入的问题 (#4484)

This commit is contained in:
zhengkunwang 2024-04-12 12:08:06 +08:00 committed by GitHub
parent 222089d56a
commit e6ccf8be1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -447,7 +447,7 @@ const handleSearchResult = (res: ResultData<File.File>) => {
const open = async (row: File.File) => {
if (row.isDir) {
if (row.name == '.1panel_clash') {
if (row.name.indexOf('.1panel_clash') > -1) {
MsgWarning(i18n.global.t('file.clashOpenAlert'));
return;
}