mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-10 09:02:42 +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) => {
|
const open = async (row: File.File) => {
|
||||||
if (row.isDir) {
|
if (row.isDir) {
|
||||||
if (row.name == '.1panel_clash') {
|
if (row.name.indexOf('.1panel_clash') > -1) {
|
||||||
MsgWarning(i18n.global.t('file.clashOpenAlert'));
|
MsgWarning(i18n.global.t('file.clashOpenAlert'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue