feat: Phase 3 - API layer + Pinia stores + app integration

- HTTP client (axios interceptors, token mgmt, typed APIs)
- Pinia stores: token, user (login/logout), app (dark mode, sidebar)
- globalConfig TS types + Window augmentation
- Vue Router (hash history, auth guard)
- Login/Home/Mine pages (Vant UI)
- Vant integration + globalConfig dev script
- Build passes (vue-tsc + vite)
This commit is contained in:
Ubuntu
2026-06-15 20:56:05 +08:00
parent ffbdb093a9
commit ed9eedc519
19 changed files with 2080 additions and 8 deletions

View File

@@ -1,7 +1,22 @@
<script setup lang="ts">
import HelloWorld from './components/HelloWorld.vue'
/**
* 应用根组件
*
* 使用 Vant ConfigProvider 包裹路由视图,
* 提供全局主题配置和路由出口。
*/
</script>
<template>
<HelloWorld />
<van-config-provider>
<router-view />
</van-config-provider>
</template>
<style>
/* App-level 全局样式调整 */
#app {
width: 100%;
min-height: 100vh;
}
</style>