mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	fix: 动态标签页标记改为refreshRedirect
This commit is contained in:
		
							parent
							
								
									c875d20e83
								
							
						
					
					
						commit
						ef91f113ee
					
				@ -89,7 +89,7 @@ router.beforeEach((to: toRouteType, _from, next) => {
 | 
			
		||||
              });
 | 
			
		||||
            };
 | 
			
		||||
            // 未开启标签页缓存,刷新页面重定向到顶级路由(参考标签页操作例子,只针对静态路由)
 | 
			
		||||
            if (to.meta?.dynamicLevel) {
 | 
			
		||||
            if (to.meta?.refreshRedirect) {
 | 
			
		||||
              const routes = router.options.routes;
 | 
			
		||||
              const { refreshRedirect } = to.meta;
 | 
			
		||||
              const { name, meta } = findRouteByPath(refreshRedirect, routes);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user