src/components/menu/Device.vue
@@ -40,12 +40,12 @@ initeWaterPrimitiveView() }); // onBeforeRouteUpdate((to, from, next) => { // if (to.path !== '/zhjc') { // handleCleanup(); // } // next(); // }); onBeforeRouteUpdate((to, from, next) => { if (to.path !== '/zhjc') { handleCleanup(); } next(); }); const route = useRoute(); onBeforeUnmount(() => {