dcloudio / dcloudio/uni-app

<unicloud-db> 组件不能传入页面id参数

Open
#3,751 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

**问题描述**
组件不能传入页面id参数

**复现步骤**
场景是从列表页跳转到详情页, 代码是官方文档的示例,稍作改动,作为示意:
```



export default {
data() {
return {
tempstr: ''
}
},
onLoad(id) {
this.tempstr = id.id
},
}

```

**预期结果**
希望能正确获取页面id的参数,或者有其他方法,请在文档中说明

**实际结果**
数据库未获取到数据,获取的是空值

**系统信息:**
- 发行平台: 微信小程序
- HBuilderX版本 3.4.18

**补充信息**
未见到unicloud-db源码,请提供地址,我想看看是否可以用prop传参

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.