mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-18 17:48:01 +08:00
docs: 修改文档
This commit is contained in:
@@ -19,6 +19,9 @@ permalink: /mobile/start/
|
||||
VITE_BASE_API = http://localhost:52789/api
|
||||
```
|
||||
|
||||
直接点击HBuilderX的运行按钮,即可启动前端:
|
||||
|
||||

|
||||
|
||||
启动成功后,使用浏览器访问[http://localhost:5173/](http://localhost:5173/) 即可打开UniApp版界面:
|
||||
|
||||
|
@@ -5,47 +5,33 @@ permalink: /mobile/structure/
|
||||
---
|
||||
|
||||
OpenAuth.Net移动版参考业界标准结构进行划分,如需二次开发,可以在对应的文件夹进行代码修改。结构如下:
|
||||
```
|
||||
📦openauthapp
|
||||
┣ 📂mock //mock数据
|
||||
┣ 📂public //公共资源
|
||||
┣ 📂src
|
||||
┃ ┣ 📂api //与后端接口交互
|
||||
┃ ┣ 📂assets //样式图标等
|
||||
┃ ┣ 📂components //组件
|
||||
┃ ┣ 📂directive //指令
|
||||
┃ ┣ 📂extensions //原有选项式mixins扩展组件
|
||||
┃ ┣ 📂hooks //自定义hooks
|
||||
┃ ┣ 📂interface //前端类型约定
|
||||
┃ ┣ 📂layout //布局
|
||||
┃ ┃ ┣ 📂components //站点Layout组件
|
||||
┃ ┃ ┃ ┣ 📂Content //内容
|
||||
┃ ┃ ┃ ┣ 📂Sidebar //侧边栏
|
||||
┃ ┃ ┃ ┣ 📂Tagsbar //标签栏
|
||||
┃ ┃ ┃ ┗ 📂Topbar //顶部栏
|
||||
┃ ┣ 📂lib //外部引入的公共库
|
||||
┃ ┣ 📂router //路由
|
||||
┃ ┣ 📂store //状态管理
|
||||
┃ ┣ 📂stores //pinia状态管理,主题等
|
||||
┃ ┣ 📂styles //样式
|
||||
┃ ┣ 📂utils //通用工具类
|
||||
┃ ┣ 📂views //视图
|
||||
┃ ┣ 📜App.vue //主组件
|
||||
┃ ┣ 📜default-settings.js //默认配置
|
||||
┃ ┣ 📜error-log.js //错误日志
|
||||
┃ ┣ 📜global-components.js //全局组件
|
||||
┃ ┣ 📜main.js //主入口
|
||||
┃ ┗ 📜permission.js //权限
|
||||
┣ 📜.env.dev //开发环境配置
|
||||
┣ 📜.env.production //生产环境配置
|
||||
┣ 📜.eslintignore //eslint忽略文件
|
||||
┣ 📜.eslintrc.js //eslint配置
|
||||
┣ 📜.prettierrc.js //prettier配置
|
||||
┣ 📜index.html //入口文件
|
||||
┣ 📜jsconfig.json //js配置
|
||||
┣ 📜package.json //项目配置
|
||||
┣ 📜postcss.config.js //postcss配置
|
||||
┣ 📜README.md //项目说明
|
||||
┗ 📜vite.config.js //vite配置
|
||||
|
||||
```
|
||||
::: file-tree
|
||||
|
||||
- openauthapp
|
||||
- .cursorignore cursor codebase 忽略文件
|
||||
- api 接口
|
||||
- login.js
|
||||
- components 组件
|
||||
- CreatedFlow
|
||||
- SelectRoles
|
||||
- SelectUsersCom
|
||||
- pages 页面
|
||||
- login
|
||||
- index.vue
|
||||
- user
|
||||
- profile.vue
|
||||
- static 静态文件
|
||||
- empty-icon.svg
|
||||
- logo.png
|
||||
- unpackage 打包文件
|
||||
- utils 工具函数
|
||||
- common.js
|
||||
- request.js
|
||||
- App.vue 主组件
|
||||
- index.html 入口文件
|
||||
- main.js 主文件
|
||||
- manifest.json 配置文件
|
||||
- pages.json 页面配置文件
|
||||
- uni.scss 样式文件
|
||||
:::
|
||||
|
Reference in New Issue
Block a user