fix: Fixed the issue of inconsistent styles on the left and right sides of the file transfer page.

This commit is contained in:
zhengkunwang223 2025-08-28 11:01:15 +08:00
parent 5a34e2d380
commit f7f0a1afb9

View file

@ -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>