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

View File

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