- 在 DefaultLayout 组件中添加退出登录按钮 - 实现 logout 函数,用于清除 token 并重定向到登录页 - 修改路由配置,增加 requiresAuth 元数据用于权限控制 - 优化 auth.js 中的 TokenKey 名称 - 移除 CustomCard、AboutView 和 TestApi 组件中的冗余样式 |
||
|---|---|---|
| .vscode | ||
| public | ||
| src | ||
| .eslintrc.cjs | ||
| .gitignore | ||
| .prettierrc | ||
| index.html | ||
| jsconfig.json | ||
| package.json | ||
| README.md | ||
| vite.config.js | ||
vue-project
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VSCode + Volar (and disable Vetur).
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Compile and Minify for Production
npm run build
Lint with ESLint
npm run lint