fix: 🐛 ts 类型报错问题修复
Former-commit-id: a3426ee43f076f6eb216289fc307cc02a910426a
This commit is contained in:
@@ -185,7 +185,7 @@ function moveToCurrentTag() {
|
|||||||
if (tag.fullPath !== route.fullPath) {
|
if (tag.fullPath !== route.fullPath) {
|
||||||
tagsViewStore.updateVisitedView({
|
tagsViewStore.updateVisitedView({
|
||||||
name: route.name as string,
|
name: route.name as string,
|
||||||
title: route.meta.title,
|
title: route.meta.title || "",
|
||||||
path: route.path,
|
path: route.path,
|
||||||
fullPath: route.fullPath,
|
fullPath: route.fullPath,
|
||||||
affix: route.meta?.affix,
|
affix: route.meta?.affix,
|
||||||
|
|||||||
2
types/router.d.ts
vendored
2
types/router.d.ts
vendored
@@ -5,7 +5,7 @@ declare module "vue-router" {
|
|||||||
// 可以通过扩展 RouteMeta 接口来输入 meta 字段
|
// 可以通过扩展 RouteMeta 接口来输入 meta 字段
|
||||||
interface RouteMeta {
|
interface RouteMeta {
|
||||||
/** 菜单名称 */
|
/** 菜单名称 */
|
||||||
title: string;
|
title?: string;
|
||||||
/** 菜单图标 */
|
/** 菜单图标 */
|
||||||
icon?: string;
|
icon?: string;
|
||||||
/** 菜单是否隐藏 */
|
/** 菜单是否隐藏 */
|
||||||
|
|||||||
Reference in New Issue
Block a user