877a47807c6d40a0056ada8fd3277a9e9823b1d7
- 改进登录表单验证逻辑,增加非空和类型检查 - 更新认证 Cookie 名称为 Authorization 并调整安全设置 - 登录成功后返回重定向路径和成功消息 - 增强错误处理,区分网络错误、API 错误和未知错误 - 引入 ResponseError 类统一处理 API 响应错误 - 表单提交使用 enhance 函数优化用户体验 - 登录成功时显示 Toast 提示并自动跳转 - 移除独立的用户信息服务,整合至认证服务 - 删除旧的角色检查工具函数 - 新增错误处理工具函数 handleError
sv
Everything you need to build a Svelte project, powered by sv.
Creating a project
If you're seeing this, you've probably already done this step. Congrats!
# create a new project in the current directory
npx sv create
# create a new project in my-app
npx sv create my-app
Developing
Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
Building
To create a production version of your app:
npm run build
You can preview the production build with npm run preview.
To deploy your app, you may need to install an adapter for your target environment.
Description
Languages
Svelte
63.6%
TypeScript
34.1%
JavaScript
1.7%
CSS
0.4%
HTML
0.2%