mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-28 00:01:01 +00:00
fix: Fixed the issue of switching file highlighting (#8783)
This commit is contained in:
@@ -606,6 +606,7 @@ const removeOtherTab = (targetPath: string) => {
|
||||
};
|
||||
|
||||
const changeTab = (targetPath: TabPaneName) => {
|
||||
selectTab.value = targetPath.toString();
|
||||
getContent(targetPath.toString(), '');
|
||||
};
|
||||
|
||||
@@ -958,6 +959,9 @@ const getContent = (path: string, extension: string) => {
|
||||
saveContent();
|
||||
fetchFileContent();
|
||||
})
|
||||
.catch(() => {
|
||||
selectTab.value = form.value.path;
|
||||
})
|
||||
.finally(() => {});
|
||||
} else {
|
||||
fetchFileContent();
|
||||
|
||||
Reference in New Issue
Block a user