mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-05 06:04:35 +08:00
fix: Fixed the issue of inconsistent styles on the left and right sides of the file transfer page.
This commit is contained in:
parent
5a34e2d380
commit
f7f0a1afb9
1 changed files with 7 additions and 9 deletions
|
@ -234,15 +234,13 @@ onMounted(() => {
|
|||
tableHeight.value = window.innerHeight - heightDiff - tabHeight;
|
||||
}
|
||||
|
||||
window.onresize = () => {
|
||||
return (() => {
|
||||
if (props.height) {
|
||||
tableHeight.value = props.height - tabHeight;
|
||||
} else {
|
||||
tableHeight.value = window.innerHeight - heightDiff - tabHeight;
|
||||
}
|
||||
})();
|
||||
};
|
||||
window.addEventListener('resize', () => {
|
||||
if (props.height) {
|
||||
tableHeight.value = props.height - tabHeight;
|
||||
} else {
|
||||
tableHeight.value = window.innerHeight - heightDiff - tabHeight;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue