diff --git a/newdocs/docs/.vuepress/notes.ts b/newdocs/docs/.vuepress/notes.ts index 255a0a80..c3c767ab 100644 --- a/newdocs/docs/.vuepress/notes.ts +++ b/newdocs/docs/.vuepress/notes.ts @@ -1,7 +1,7 @@ /* * @Author: yubaolee | ahfu~ <954478625@qq.com> * @Date: 2025-04-23 20:26:48 - * @LastEditTime: 2025-05-24 11:39:48 + * @LastEditTime: 2025-05-29 00:21:10 * @Description: 笔记配置 * Copyright (c) 2025 by yubaolee | ahfu~ , All Rights Reserved. */ @@ -113,8 +113,23 @@ const vue2Note = defineNoteConfig({ ] }) +// 移动UniApp版本 +const mobileNote = defineNoteConfig({ + dir: 'mobile', + link: '/mobile', + sidebar: [ + '', + { + text: '基础开发', + collapsed: false, + items: ['start', 'structure'] + } + ] +}) + + export const notes = defineNotesConfig({ dir: 'notes', link: '/', - notes: [coreNote, proNote, vue2Note], + notes: [coreNote, proNote, vue2Note, mobileNote], }) diff --git a/newdocs/docs/notes/mobile/start.md b/newdocs/docs/notes/mobile/start.md index 6462632c..9db5ed57 100644 --- a/newdocs/docs/notes/mobile/start.md +++ b/newdocs/docs/notes/mobile/start.md @@ -1,30 +1,25 @@ --- title: 快速开始 -createTime: 2025/04/23 23:43:26 -permalink: /pro/start/ +createTime: 2025/05/29 23:43:26 +permalink: /mobile/start/ --- ## 工具准备 -#### NodeJs -前端环境为NodeJs,下载地址:[http://nodejs.cn/download/current/](http://nodejs.cn/download/current/) -#### visual studio code -下载最新版的vs code,或Cursor、Windsurf、Trae等工具用来作为OpenAuth.Pro Vue3版的开发工具。 +#### HBuilderX +下载最新版的HBuilderX最新版(可以下载Cursor、Windsurf、Trae等工具配合开发效果更佳),用来作为OpenAuth.Net移动版的开发工具。 ## 源码下载 -根据授权文件的下载指示,下载Vue3源码。注意:一定要使用下图中的数据库脚本: +根据授权文件的下载指示,下载移动版源码。 ![2025-04-08-20-53-49](http://img.openauth.net.cn/2025-04-08-20-53-49.png) ## 创建数据库 * 新建一个空数据库:OpenAuthPro。使用上一步下载的【sql脚本】文件夹,根据你的数据库类型,选择运行你需要的脚本:`Sql Server脚本.sql`或`mysql脚本.sql` ## 启动后端 启动后端请参考:[快速开始](/core/start/) ## 启动前端 -使用Vs Code(或个人喜欢的工具)打开openauthvue3文件夹,修改配置文件`.env.dev`对应的后端接口地址,调整为自己的接口地址: +使用HBuilderX打开openauthapp文件夹,修改配置文件`config.js`对应的后端接口地址,调整为自己的接口地址: ```javascript VITE_BASE_API = http://localhost:52789/api -VITE_BASE_IMG_URL = http://localhost:52789 ``` -::: warning 注意 -如果是发布打包,调整的文件为`.env.production` -::: -使用`npm install`命令安装程序运行所需的第三方包。再用`npm run dev`命令运行。如下图: -![2025-04-08-20-57-34](http://img.openauth.net.cn/2025-04-08-20-57-34.png) -启动成功后,使用浏览器访问[http://localhost:1803/](http://localhost:1803/) 即可打开vue3版界面: -![2025-04-08-21-03-19](http://img.openauth.net.cn/2025-04-08-21-03-19.png) + + +启动成功后,使用浏览器访问[http://localhost:5173/](http://localhost:5173/) 即可打开UniApp版界面: + +![2025-05-29-00-24-46](http://img.openauth.net.cn/2025-05-29-00-24-46.png) \ No newline at end of file diff --git a/newdocs/docs/notes/mobile/structure.md b/newdocs/docs/notes/mobile/structure.md index dae83d09..cd361c65 100644 --- a/newdocs/docs/notes/mobile/structure.md +++ b/newdocs/docs/notes/mobile/structure.md @@ -1,12 +1,12 @@ --- title: 项目结构 -createTime: 2025/04/23 23:43:26 -permalink: /pro/structure/ +createTime: 2025/05/29 23:43:26 +permalink: /mobile/structure/ --- -OpenAuth.Net Vue3版本参考业界标准结构进行划分,如需二次开发,可以在对应的文件夹进行代码修改。结构如下: +OpenAuth.Net移动版参考业界标准结构进行划分,如需二次开发,可以在对应的文件夹进行代码修改。结构如下: ``` -📦openauthvue3 +📦openauthapp ┣ 📂mock //mock数据 ┣ 📂public //公共资源 ┣ 📂src @@ -49,5 +49,3 @@ OpenAuth.Net Vue3版本参考业界标准结构进行划分,如需二次开发 ┗ 📜vite.config.js //vite配置 ``` - -整个vue的入口是main.js,打包之编译后的代码全部会注入到index.html的`
`里面。 \ No newline at end of file