wenhongquan 2 years ago
parent
commit
5b87397b26
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/components/MarkerMap/index.tsx

+ 5 - 0
src/components/MarkerMap/index.tsx

@@ -1146,6 +1146,11 @@ export default defineComponent({
     };
 
     onMounted(async () => {
+      store.getAllsingleDevice();
+      setTimeout(() => {
+        store.getAllsingleDevice();
+      }, 2000);
+
       window.minemap.util.getJSON(
         (import.meta.env.VITE_MAP_SERVER as string) +
           '/service/solu/style/id/' +