Commit 9122e1b8 authored by 张豪's avatar 张豪

添加智能制图服务发布传参

parent 7bb655f4
......@@ -21,17 +21,19 @@ export default {
};
},
mounted() {
// window.addEventListener('message',event =>{
// let data = event.data;
// if (data.cmd == 'mapviewmsg'){
// this.$router.push({
// name: "intelligent_details",
// query: {
// id: data.params.id
// }
// });
// }
// })
window.addEventListener('message',event =>{
let data = event.data;
// 智能制图发布服务
if (data.cmd == 'mapviewmsg'){
console.log(data);
this.$router.push(`/fwzc/fwcs`);
}
// App Builder发布服务
if (data.cmd == 'appbuildermsg'){
console.log(data);
this.$router.push(`/fwzc/fwcs`);
}
})
},
methods: {},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment