mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-12 03:33:41 +08:00
docs(projects): 更新README.md
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
import { EnumRoutePaths, EnumLoginModule } from '@/enum';
|
||||
|
||||
/** 路由描述 */
|
||||
export interface RouteMeta {
|
||||
/** 页面100%视高 */
|
||||
fullPage?: boolean;
|
||||
}
|
||||
|
||||
export type RoutePathKey = keyof typeof EnumRoutePaths;
|
||||
export type LoginModuleType = keyof typeof EnumLoginModule;
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export { UserInfo } from './business';
|
||||
export { ThemeSettings, NavMode, AnimateType } from './theme';
|
||||
export { RoutePathKey, LoginModuleType } from './common';
|
||||
export { RouteMeta, RoutePathKey, LoginModuleType } from './common';
|
||||
|
||||
@@ -11,7 +11,8 @@ const isVercel = import.meta.env.VITE_HTTP_ENV === 'VERCEL';
|
||||
|
||||
const router = createRouter({
|
||||
history: isVercel ? createWebHashHistory() : createWebHistory(),
|
||||
routes
|
||||
routes,
|
||||
scrollBehavior: () => ({ left: 0, top: 0 })
|
||||
});
|
||||
|
||||
export async function setupRouter(app: App) {
|
||||
|
||||
Reference in New Issue
Block a user