iflow描述文件调优

This commit is contained in:
yuantao
2025-12-09 11:48:44 +08:00
parent 9d9df71f28
commit 60749ed147

View File

@@ -184,7 +184,7 @@ npm install
* `uni_modules` 目录中的组件无需导入直接可以进行使用。
* **组件库**: 集成 `uView-Plus` 和 `z-paging`
* **自动导入**: `uView-Plus` 通过 `easycom` 自动导入
```javascript
```vue
// 直接使用无需import
<u-button>按钮</u-button>
<u-icon name="home" />
@@ -284,6 +284,13 @@ git commit -m "优化 接口请求性能"
* 项目中的头像编辑和获取功能应该使用微信原生获取头像昵称的开放能力,通过 `button` 或 `u-button` 组件的 `open-type="chooseAvatar"` 属性和其触发的 `@chooseavatar` 事件实现。
* 项目中的昵称编辑和获取功能应该使用微信原生获取头像昵称的开放能力,通过 `input` 或 `u-input` 组件的 `open-type="nickname"` 属性实现。
* 项目集成了promise适配器 `uni.promisify.adaptor.js`,用于统一处理异步操作。
* 如果在使用工具函数中的 `alert()` 后进行了返回操作,请使用如下规范:
```javascript
async ()=>{
await tool.alert('提示')
await tool.navigateBack()
}
```
## 最佳实践