🐛(component): 修复 table 销毁时未注销 onresize 事件

This commit is contained in:
就眠儀式 2022-08-12 13:55:13 +08:00
parent b650909f45
commit 820b956871

View File

@ -15,6 +15,7 @@ import {
StyleValue,
WritableComputedRef,
computed,
onBeforeUnmount,
} from "vue";
import { v4 as uuidv4 } from "../../utils/guidUtil";
import { Recordable } from "../../types";
@ -610,6 +611,10 @@ const renderTotalRowCell = (column: any) => {
}
}
};
onBeforeUnmount(() => {
window.onresize = null;
})
</script>
<template>