Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
project_progress
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4146c361
authored
Feb 25, 2025
by
bingobo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关掉调试header
1 parent
4fc8e264
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
24 deletions
public/js/system.config.js
src/views/layout/analysisCore.vue
public/js/system.config.js
View file @
4146c36
...
...
@@ -5,7 +5,7 @@ const SystemConfig = {
PUBLIC_PATH
:
'/api'
,
//TODO VUE_APP_BASE_URL: "http://25.66.210.41/tools",
VUE_APP_BASE_URL
:
"http://192.168.0.1
13
:18088/tools"
,
VUE_APP_BASE_URL
:
"http://192.168.0.1
04
:18088/tools"
,
//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://localhost:30478/arch"
...
...
src/views/layout/analysisCore.vue
View file @
4146c36
<
template
>
<iframe
:src=
"zjIframe"
frameborder=
"0"
id=
"iframezj"
></iframe>
<iframe
:src=
"zjIframe"
frameborder=
"0"
id=
"iframezj"
></iframe>
</
template
>
<
script
>
export
default
{
data
(){
return
{
id
:
sessionStorage
.
getItem
(
'author'
),
zjIframe
:
''
}
data
()
{
return
{
id
:
sessionStorage
.
getItem
(
"author"
),
zjIframe
:
""
,
};
},
mounted
(){
this
.
zjIframe
=
SystemConfig
.
VUE_APP_ZJ_IFRAME
+
'/static/'
console
.
log
(
sessionStorage
.
getItem
(
'authorized-token'
),
'zi级session'
)
let
auto
=
sessionStorage
.
getItem
(
'author'
)
const
iFrame
=
document
.
getElementById
(
'iframe'
)
iFrame
.
onload
=
function
(){
iFrame
.
contentWindow
.
postMessage
(
auto
,
'\*'
);
}
}
}
mounted
()
{
this
.
zjIframe
=
SystemConfig
.
VUE_APP_ZJ_IFRAME
+
"/static/"
;
console
.
log
(
sessionStorage
.
getItem
(
"authorized-token"
),
"zi级session"
);
let
auto
=
sessionStorage
.
getItem
(
"author"
);
const
iFrame
=
document
.
getElementById
(
"iframezj"
);
iFrame
.
onload
=
function
()
{
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
>
<
style
>
#iframezj
{
#iframezj
{
width
:
100%
;
/* height: 100vh; */
height
:
calc
(
100vh
-
100px
);
}
</
style
>
\ No newline at end of file
</
style
>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment