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

Vue3.0项目在CentOS上进行打包构建后,同一个单文件的组件里,子元素和父元素的data-v-hash值不一致,导致子元素的样式丢失 #2075

Open
sharpxiajun opened this issue May 20, 2024 · 0 comments

Comments

@sharpxiajun
Copy link

Vue3.0项目在CentOS上进行打包构建后,同一个单文件的组件里,子元素和父元素的data-v-hash值不一致,导致子元素的样式丢失。这里没有引入子组件,下面是打包后的效果:

111
样式:
222
在window平台打包是没有问题,同一个组件的data-v-hash值都能保持一致,换到linux上打包就有问题。关键问题不知道什么样的写法会导致data-v-hash值不一致,最后只能打完包,把系统运行起来才能发现问题。

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

1 participant