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

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