wenhongquan 2 лет назад
Родитель
Сommit
ab619c3ff3
2 измененных файлов с 6 добавлено и 0 удалено
  1. 2 0
      src/components/MarkerMap/index.tsx
  2. 4 0
      src/layout/BaseLayout/index.tsx

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

@@ -1147,8 +1147,10 @@ export default defineComponent({
 
 
     onMounted(async () => {
     onMounted(async () => {
       store.getAllsingleDevice();
       store.getAllsingleDevice();
+      
       setTimeout(() => {
       setTimeout(() => {
         store.getAllsingleDevice();
         store.getAllsingleDevice();
+        store.getAllvideoDevice();
       }, 2000);
       }, 2000);
 
 
       window.minemap.util.getJSON(
       window.minemap.util.getJSON(

+ 4 - 0
src/layout/BaseLayout/index.tsx

@@ -156,6 +156,10 @@ export default defineComponent({
 
 
     // login da hua
     // login da hua
     onMounted(async () => {
     onMounted(async () => {
+      setTimeout(() => {
+        markerstore.getAllsingleDevice();
+        markerstore.getAllvideoDevice();
+      }, 4000);
       const meeting = new Meeting();
       const meeting = new Meeting();
       meeting.$Message = ElMessage;
       meeting.$Message = ElMessage;
       meeting.openClient(() => {
       meeting.openClient(() => {