修复菜单导航标题显示错误

This commit is contained in:
zhongyushi 2021-11-12 13:31:03 +08:00
parent ea71626028
commit 223e9c8165

View File

@ -9,7 +9,7 @@
>
<a-tab-pane v-for="page in pageList" :key="page.path" :closable="route.path !== page.path">
<template #tab>
{{page.name}}
{{page.title}}
<ReloadOutlined
v-show="route.path === page.path"
class="layout-tabs-close-icon"
@ -75,6 +75,7 @@ export default {
params: unref(route.params)
},
name: unref(route.meta).name,
title: unref(route.meta).title,
key: getKey()
}
]);
@ -85,6 +86,7 @@ export default {
path: to.path,
route: to,
name: to.meta.name,
title: to.meta.title,
key: getKey()
});
}