mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-25 15:24:17 +08:00
fix: 解决文件搜索目录包含回收站目录能进入的问题 (#4484)
This commit is contained in:
parent
222089d56a
commit
e6ccf8be1f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue