fix: 处理报错
This commit is contained in:
+2
-12
@@ -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 {
|
||||
/** 已打开的页面标签列表,按访问顺序累加 */
|
||||
|
||||
Reference in New Issue
Block a user