fix(map): amap reset (#4574)

This commit is contained in:
YANG QIA 2024-06-06 15:48:00 +08:00 committed by GitHub
parent 22a89861f6
commit 0c637e8890
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -371,6 +371,8 @@ export const AMapComponent = React.forwardRef<AMapForwardedRefProps, AMapCompone
map.current = null;
mouseTool.current = null;
editor.current = null;
// @ts-ignore
AMapLoader.reset();
};
}, [accessKey, type, securityJsCode]);