路由懒加载 还要取消暂停路径规划接口 接入

This commit is contained in:
mmc
2026-06-02 17:32:29 +08:00
parent 69a8a47d0d
commit 1a87d659f4
4 changed files with 203 additions and 35 deletions

View File

@@ -62,7 +62,7 @@ export default function RobotTaskPage() {
const controller = new DeviceController(userInfo, messageApi);
controllerRef.current = controller;
return () => {
controllerRef.current.destroy();
controllerRef.current?.destroy();
controllerRef.current = null;
}