mirror of
				https://github.com/soybeanjs/soybean-admin.git
				synced 2025-11-04 15:53:43 +08:00 
			
		
		
		
	fix(projects): 修复tabs在static路由模式下可以关闭首页
This commit is contained in:
		@@ -128,9 +128,14 @@ export const useRouteStore = defineStore('route-store', {
 | 
			
		||||
    },
 | 
			
		||||
    /** 初始化静态路由 */
 | 
			
		||||
    async initStaticRoute() {
 | 
			
		||||
      const { initHomeTab } = useTabStore();
 | 
			
		||||
      const auth = useAuthStore();
 | 
			
		||||
 | 
			
		||||
      const routes = filterAuthRoutesByUserPermission(staticRoutes, auth.userInfo.userRole);
 | 
			
		||||
      this.handleAuthRoute(routes);
 | 
			
		||||
 | 
			
		||||
      initHomeTab(this.routeHomeName, router);
 | 
			
		||||
 | 
			
		||||
      this.isInitAuthRoute = true;
 | 
			
		||||
    },
 | 
			
		||||
    /** 初始化权限路由 */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user