feat: add the attribute routeCached to route to control cache the DOM corresponding to the route

This commit is contained in:
Jin Mao
2026-02-27 16:04:01 +08:00
parent 45b843f344
commit bd22793ceb
9 changed files with 301 additions and 83 deletions

View File

@@ -43,6 +43,10 @@ interface RouteMeta {
| 'success'
| 'warning'
| string;
/**
* 路由对应dom是否缓存起来
*/
domCached?: boolean;
/**
* 路由的完整路径作为key默认true
*/