Skip to content

在Vue3 + Vite项目,将vnode渲染到dom上,开发环境和生产环境表现不一致? #6627

Answered by chenxch
HJ-Hao asked this question in Help/Questions
Discussion options

You must be logged in to vote

你的代码是参考ep的实现方式,但是要注意的一点是ep的messageBox.vue使用的是optionAPI,而你的是用script setupoptionAPI编写的组件其内部属性外部是可以直接访问的,而script setup需要自行expose

如果你觉得这个对你有帮助可以标记为答案哈~~😁

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@HJ-Hao
Comment options

Answer selected by HJ-Hao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants