|
@@ -1,13 +1,13 @@
|
|
|
import { ref, toRefs } from 'vue'
|
|
import { ref, toRefs } from 'vue'
|
|
|
import { createRouter, RouterOptions, RouteRecordRaw, RouteLocationNormalized } from 'vue-router'
|
|
import { createRouter, RouterOptions, RouteRecordRaw, RouteLocationNormalized } from 'vue-router'
|
|
|
|
|
|
|
|
-interface historyRoute {
|
|
|
|
|
|
|
+interface HistoryRoute {
|
|
|
name: string;
|
|
name: string;
|
|
|
fullPath: string;
|
|
fullPath: string;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
interface HistoryState {
|
|
interface HistoryState {
|
|
|
- historyRoutes: historyRoute[]; // 历史路由列表
|
|
|
|
|
|
|
+ historyRoutes: HistoryRoute[]; // 历史路由列表
|
|
|
excludeViews: string[]; // 不缓存的视图
|
|
excludeViews: string[]; // 不缓存的视图
|
|
|
actionName: '' | 'push' | 'replace' | 'forward' | 'back'; // 当前路由动作
|
|
actionName: '' | 'push' | 'replace' | 'forward' | 'back'; // 当前路由动作
|
|
|
transitionName: '' | 'route-out' | 'route-in'; // 前进后退动画
|
|
transitionName: '' | 'route-out' | 'route-in'; // 前进后退动画
|