fix: 移除残留 pollingRef 引用
This commit is contained in:
parent
5f87f695fe
commit
786419419f
|
|
@ -65,9 +65,6 @@ export default function TemplateEditor() {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
loadData();
|
loadData();
|
||||||
return () => {
|
|
||||||
if (pollingRef.current) clearInterval(pollingRef.current);
|
|
||||||
};
|
|
||||||
}, [loadData]);
|
}, [loadData]);
|
||||||
|
|
||||||
const handleSave = async () => {
|
const handleSave = async () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue