fix: 处理报错

This commit is contained in:
ZhuRui
2026-07-27 17:08:21 +08:00
parent b6e91bfbac
commit cc5ca261c6
4 changed files with 18 additions and 19 deletions
+2 -12
View File
@@ -1,18 +1,8 @@
import { reactive, computed, toRefs } from 'vue';
import router from '@/router';
import type { TabView } from '@/types';
/**
* 单个页面标签的数据结构(标签 = 已经访问过的页面)
*
* path 唯一标识,用于路由激活态判断
* name 路由组件 name,用于 <keep-alive :include="cachedViews">
* title 展示在 tab 上的文字
*/
export interface TabView {
path: string;
name: string;
title: string;
}
export type { TabView };
interface TabsState {
/** 已打开的页面标签列表,按访问顺序累加 */