移除传统的全局混入改为使用Vue3的全局暴露

This commit is contained in:
yuantao
2025-09-29 14:31:00 +08:00
parent 6f0bb2f949
commit ff550db7b6
6 changed files with 36 additions and 36 deletions

View File

@@ -5,25 +5,36 @@
## 目录结构
```
├── api/ # 接口相关
│ ├── modules/ # 模块化 API 请求
│ └── request.ts # 请求封装配置
├── api/ # 接口相关
│ ├── modules/ # 业务接口
│ └── request.ts # 请求封装
├── common/ # 公共资源
│ ├── styles/ # 全局样式
│ │ ├── common.css # codefun原子类样式
│ │ └── base.scss # 全局样式变量
│ └── utils/ # 工具函数
│ └── tool.ts # 常用工具函数
├── components/ # 公共组件
├── lib/ # 第三方库
├── mixins/ # Vue 混入
│ └── luch-request/ # luch-request 网络请求库
├── pages/ # 主包页面
│ └── index/ # 首页
│ └── index.vue # 首页页面
├── subPages/ # 分包页面
├── store/ # 状态管理
├── uni_modules/ # uni-app 组件库
│ └── index.ts # Vuex store
├── uni_modules/ # uni-app 组件
│ └── z-paging/ # 分页组件库
├── uview-plus/ # uView-Plus 组件库
├── App.vue # 应用入口
├── main.ts # 主入口文件
├── pages.json # 页面路由和配置
├── pages.json # 页面配置
├── manifest.json # 应用配置
├── uni.scss # 全局样式变量
── .env # 环境变量配置
── vite.config.js # Vite 编译配置
├── .env # 环境变量
├── .nvmdrc # Node.js 版本要求
└── tsconfig.json # TypeScript 配置
```
## 使用方法