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

@ -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;
if (activeCompo) {
// this.changeHandler(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.iframeUrl = "";
this.$nextTick(() => {
this.$router.push({ this.$router.push({
path: "/" + name path: "/" + name
}) })
});
// // this.$router.replace({ name: name, force: true }) // // this.$router.replace({ name: name, force: true })
// alert(name) // alert(name)