# memos-web **Repository Path**: chxin/memos-web ## Basic Information - **Project Name**: memos-web - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-10 - **Last Updated**: 2026-01-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # The frontend of Memos https://github.com/usememos/memos 中的web项目 ## 1.请求url设置 grpcweb.ts `const baseurl = "http://yps.aotbot.com:5230";` ## 2.使用live server 预览 需设置 vscode的 settings中搜索设置 `"liveServer.settings.root": "./dist"` ## 3、路由问题 在`src/router/index.tsx` 中添加`index.html`否则首页会出现404的问题 ## 4.hbuildx编辑 `npm run cf` 将dist目录下的文件 复制到5app下,5app为 hbuildx项目 通过hbuildx打包成apk 实测不行,会找不到路径 ## 5.使用Capacitor 1. 在现有 React 项目中安装 Capacitor npm install @capacitor/core @capacitor/cli 2. 初始化 Capacitor npx cap init [你的应用名称] [应用ID,如com.example.myapp] 3. 构建 React 项目 npm run build 4. 安装 Android 平台 npm install @capacitor/android npx cap add android 5. 同步 Web 资产到原生项目 npx cap sync 6. 打开 Android Studio 项目(自动生成) npx cap open android