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

virtualHost部分文档是有错误吗?文档说默认是true,但是实际情况是false #5285

Open
zhupeikang opened this issue Jan 8, 2025 · 3 comments

Comments

@zhupeikang
Copy link

微信截图_20250109034727
cli创建的项目,引用子组件时候,必须要在子组件明确定义
defineOptions({ options: { virtualHost: true } })
才能正确编译到微信小程序

@zhupeikang
Copy link
Author

版本如下
微信截图_20250109034915

@zhupeikang
Copy link
Author

zhupeikang commented Jan 8, 2025

image
这是在子组件定义virtualHost为false或者不定义defineOptions时候渲染的
defineOptions({ options: { virtualHost: false } })渲染出来的

@sdfasfsfasfsaf
Copy link

我之前开发的时候也遇到过,支付宝小程序和微信小程序的默认值不一样。之前还发现文档中还有很多其他错误,反正不要太相信文档就好了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants