docs(projects): 更新README.md

This commit is contained in:
Soybean
2021-09-13 18:43:00 +08:00
parent 963aebee6d
commit 39a7411df5
4 changed files with 14 additions and 19 deletions

View File

@@ -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;

View File

@@ -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';

View File

@@ -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) {