# lib-page **Repository Path**: boo2/lib-page ## Basic Information - **Project Name**: lib-page - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-11 - **Last Updated**: 2025-09-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # page-test This template should help get you started developing with Vue 3 in Vite. ## Recommended IDE Setup [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). ## Customize configuration See [Vite Configuration Reference](https://vite.dev/config/). ## Project Setup ```sh npm install ``` ### Compile and Hot-Reload for Development ```sh npm run dev ``` ### Compile and Minify for Production ```sh npm run build ``` ## 功能说明 1. 状态管理 1.1 使用 Pinia 管理用户登录状态,包括用户信息、token 等 2. 持久化 2.1 登录状态保存到 localStorage,页面刷新后自动恢复 3. 动态显示 3.1 左侧边栏根据登录状态显示用户名或"登录"字样 4. 路由守卫 4.1 可配置哪些页面需要登录才能访问 5. 退出功能 5.1 已登录用户可以点击退出按钮登出 6. 错误处理 6.1 完善的错误提示和加载状态