Commit 4146c361 by bingobo

关掉调试header

1 parent 4fc8e264
...@@ -5,7 +5,7 @@ const SystemConfig = { ...@@ -5,7 +5,7 @@ const SystemConfig = {
PUBLIC_PATH: '/api', PUBLIC_PATH: '/api',
//TODO VUE_APP_BASE_URL: "http://25.66.210.41/tools", //TODO VUE_APP_BASE_URL: "http://25.66.210.41/tools",
VUE_APP_BASE_URL: "http://192.168.0.113:18088/tools", VUE_APP_BASE_URL: "http://192.168.0.104:18088/tools",
//TODO VUE_APP_ZJ_IFRAME: "http://25.66.210.41/arch" //TODO VUE_APP_ZJ_IFRAME: "http://25.66.210.41/arch"
// VUE_APP_ZJ_IFRAME: "http://192.168.0.113/arch" // VUE_APP_ZJ_IFRAME: "http://192.168.0.113/arch"
VUE_APP_ZJ_IFRAME: "http://localhost:30478/arch" VUE_APP_ZJ_IFRAME: "http://localhost:30478/arch"
......
<template> <template>
<iframe :src="zjIframe" frameborder="0" id="iframezj"></iframe>
<iframe :src="zjIframe" frameborder="0" id="iframezj" ></iframe>
</template> </template>
<script> <script>
export default { export default {
data(){ data() {
return{ return {
id:sessionStorage.getItem('author'), id: sessionStorage.getItem("author"),
zjIframe:'' zjIframe: "",
} };
}, },
mounted(){ mounted() {
this.zjIframe=SystemConfig.VUE_APP_ZJ_IFRAME+'/static/' this.zjIframe = SystemConfig.VUE_APP_ZJ_IFRAME + "/static/";
console.log(sessionStorage.getItem('authorized-token'),'zi级session') console.log(sessionStorage.getItem("authorized-token"), "zi级session");
let auto=sessionStorage.getItem('author') let auto = sessionStorage.getItem("author");
const iFrame = document.getElementById('iframe') const iFrame = document.getElementById("iframezj");
iFrame.onload = function(){ iFrame.onload = function () {
iFrame.contentWindow.postMessage(auto, '\*'); iFrame.contentWindow.postMessage(auto, "\*");
} // iFrame.contentWindow.postMessage(
} // // TODO 该逻辑实现iframe父级页面传递数据到iframe子级页面,子级页面接收数据代码示例在这个文件中 => /Users/bingo/worksapce/zhijie-web/src/views/panorama/projectScale/requirement/index.vue
// {
} // type: "PARENT_DATA",
// payload: {
// user: 'rigou',
// token: 'gouzi',
// },
// },
// "*"
// ); // '*' 表示允许任何域名,建议替换为具体的iframe域名
};
},
};
</script> </script>
<style> <style>
#iframezj{ #iframezj {
width: 100%; width: 100%;
/* height: 100vh; */ /* height: 100vh; */
height: calc(100vh - 100px); height: calc(100vh - 100px);
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!