Browse Source

feat(iframe 传参数)

liujing 7 months ago
parent
commit
a5e1eb0c9d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/views/business-analysis/topology/index.vue

+ 2 - 0
src/views/business-analysis/topology/index.vue

@@ -342,6 +342,8 @@ export default {
           this.changeQuery('/business-analysis/topology/index', newValue.startTime, newValue.endTime, live)
           this.topoUrl = '/ui/index.html'
         }
+        var iframe = document.getElementById('topoFrame');
+        iframe.contentWindow.postMessage(newValue, '*')
       },
       deep: true
     },