Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

全局方法如showToast不能给出正确的提示 #31

Closed
decba78b opened this issue Apr 9, 2024 · 3 comments
Closed

全局方法如showToast不能给出正确的提示 #31

decba78b opened this issue Apr 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@decba78b
Copy link

decba78b commented Apr 9, 2024

image
image
nuxt中的定义是来源于cjs的,尽管vant本身有dts
import.d.ts中的showToast为any类型,无法提供参数提示

@tolking tolking added the bug Something isn't working label Apr 20, 2024
@berial
Copy link

berial commented Jul 11, 2024

请问这个的解决方案是什么

@tolking
Copy link
Member

tolking commented Jul 11, 2024

参考 #12944

修改 node_modules -> vant -> package.json

删除 .nuxt 文件夹

重启应该就可以正常提示了

@decba78b
Copy link
Author

请问这个的解决方案是什么

参考#26830,这个是有效的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants