mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-10 23:47:39 +08:00
fix: Fixed the issue of switching file highlighting (#8783)
This commit is contained in:
parent
6bd9bb7c06
commit
aa8277dc03
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue