Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 解决文件搜索不存在的资源后,点击下面存在的目录也会提示资源不存在的问题 #896

Merged
merged 1 commit into from
May 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frontend/src/views/host/file-management/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ const back = () => {
};

const jump = async (url: string) => {
const oldUrl = req.path;
// reset search params before exec jump
Object.assign(req, initData());
req.path = url;
Expand All @@ -364,6 +365,7 @@ const jump = async (url: string) => {
let searchResult = await searchFile();
// check search result,the file is exists?
if (!searchResult.data.path) {
req.path = oldUrl;
MsgWarning(i18n.global.t('commons.res.notFound'));
return;
}
Expand Down