Skip to content

Commit 3cd0905

Browse files
authored
docs: ✏️ 修复常见问题中useToast入参错误的问题
1 parent a01baaf commit 3cd0905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/common-problems.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ import { useMessage } from 'wot-design-uni'
242242

243243
```ts
244244
const toast = useToast()
245-
const myToast = useToast({ selector: 'my-toast' })
245+
const myToast = useToast('my-toast')
246246
```
247247

248248
## 为什么在微信小程序上使用`Popup``ActionSheet``DropDownItem`等弹出框组件包裹`Slider``Tabs`等组件时,`Slider``Tabs`表现异常?

0 commit comments

Comments
 (0)