fix:ifream链接调整

This commit is contained in:
huangweiming 2026-04-05 17:22:07 +08:00
parent f4a83c8f9a
commit b5dbf326cb
2 changed files with 21 additions and 12 deletions

View File

@ -115,7 +115,7 @@ export default {
title: '绿色交易',
icon: 'user',
name: 'lsjy',
},{
}, {
id: 'zzjggl',
title: '质证结果管理',
icon: 'user',
@ -152,14 +152,19 @@ export default {
};
},
created() {
},
activated() {
console.log("glxtSy.vue,created==>", this.$route)
// this.initView();
// const activeCompo = this.$route.query.activeCompo;
// if (activeCompo) {
// this.changeHandler(activeCompo);
// }
this.gotoPage(this.cdList[0].id);
let cdId = this.cdList[0].id;
const activeCompo = this.$route.query.activeCompo;
if (activeCompo) {
// this.changeHandler(activeCompo);
cdId = activeCompo;
}
this.gotoPage(cdId);
},
methods: {
gotoPage(menuId) {

View File

@ -1,7 +1,7 @@
<template>
<div>
<Nav @gotoIfreamPage="gotoIfreamPage" @gotoPage="gotoPage" />
<div :style="{ 'height': documentClientHeight-64 + 'px' ,'margin-top':'64px'}">
<div :style="{ 'height': documentClientHeight-65 + 'px' ,'margin-top':'64px' ,'overflow':'auto'}">
<iframe v-if="iframeUrl" :src="iframeUrl" width="100%" height="100%" frameborder="0" scrolling="yes">
</iframe>
<keep-alive v-else>
@ -49,9 +49,13 @@ export default {
},
methods: {
gotoPage(name) {
this.$router.push({
path: "/" + name
})
this.iframeUrl = "";
this.$nextTick(() => {
this.$router.push({
path: "/" + name
})
});
// // this.$router.replace({ name: name, force: true })
// alert(name)