fix:菜单微调

This commit is contained in:
huangweiming 2026-04-05 18:11:01 +08:00
parent b5dbf326cb
commit d456209b2a

View File

@ -5,7 +5,7 @@
<div style="height: 100%">
<template>
<div style="height: 100%" class="htglMenu">
<t-menu style="width: 220px; background: #fff" :defaultValue="defaultValue" :collapsed="collapsed" :defaultExpanded="expanded" @change="gotoPage">
<t-menu style="width: 220px; background: #fff" v-model="activeMenuId" :collapsed="collapsed" :defaultExpanded="expanded" @change="gotoPage">
<div class="title">用户中心</div>
<!-- 循环实现 -->
<template v-for="item in cdList">
@ -116,10 +116,10 @@ export default {
icon: 'user',
name: 'lsjy',
}, {
id: 'zzjggl',
id: 'zljggl',
title: '质证结果管理',
icon: 'user',
name: 'zzjggl',
name: 'zljggl',
iframeUrl: "https://ctn-web-pre.lingshu.net/proof-result-mgt?type=carbon-certify",
},
{
@ -147,7 +147,7 @@ export default {
zljgglurl: 'https://ctn-web-pre.lingshu.net/proof-result-mgt?type=carbon-certify',
iframeUrl: "",
activeMenuId: "qyrenzheng",
};
},
@ -164,6 +164,8 @@ export default {
// this.changeHandler(activeCompo);
cdId = activeCompo;
}
this.activeMenuId = cdId;
this.gotoPage(cdId);
},
methods: {
@ -199,8 +201,11 @@ export default {
if (iframeUrl) {
this.iframeUrl = iframeUrl;
} else {
this.$router.push({
path: "/yhzx/" + menu.name
this.iframeUrl = "";
this.$nextTick(() => {
this.$router.push({
path: "/yhzx/" + menu.name
})
})
}
},