新增: - fund-mobile/: UniApp移动端项目(Vue3 + TypeScript) - manifest.json: 应用配置(支持H5/小程序/App) - pages.json: 页面路由及TabBar配置 - App.vue: 应用入口,登录状态检查 核心页面: - login/index.vue: 登录页面(193行) * 渐变背景设计 * JWT登录集成 * 本地存储token - index/index.vue: 首页(338行) * 数据概览卡片(今日收支/待收付款) * 快捷操作入口 * 最近收支列表 - expense/add.vue: 支出录入(339行) * 表单验证 * 图片上传(拍照/相册) * 关联项目选择 配置: - config/api.ts: API接口地址配置 - utils/request.ts: 请求拦截封装 技术栈: - Vue 3 Composition API - TypeScript - UniApp跨端框架 - SCSS样式 支持平台: - H5 - 微信小程序 - App(Android/iOS)
20 lines
333 B
JavaScript
20 lines
333 B
JavaScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import Uni from '@uni-helper/plugin-uni'
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
},
|
|
plugins: [
|
|
// https://uni-helper.js.org/plugin-uni
|
|
Uni(),
|
|
],
|
|
|
|
})
|
|
|
|
|