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

热更新后,菜单和标签全部丢失 #347

Closed
hoozi opened this issue Mar 10, 2021 · 13 comments
Closed

热更新后,菜单和标签全部丢失 #347

hoozi opened this issue Mar 10, 2021 · 13 comments
Labels
bug Something isn't working

Comments

@hoozi
Copy link

hoozi commented Mar 10, 2021

修改一个页面,vite hmr后菜单和标签全部丢失了T_T

@anncwb
Copy link
Collaborator

anncwb commented Mar 10, 2021

升级最新版本

@hoozi
Copy link
Author

hoozi commented Mar 10, 2021

升级最新版本

升级vben吗?

@anncwb
Copy link
Collaborator

anncwb commented Mar 10, 2021

@carl-jin
Copy link

能更新到thin-next版本吗, 我也想更新

@hoozi
Copy link
Author

hoozi commented Mar 10, 2021

能更新到thin-next版本吗, 我也想更新

thin昨天才更新。今天稍晚会更新

我都不知道要怎么更新,因为我在里面加了很多自己的东西。更新会覆盖掉吗

@anncwb
Copy link
Collaborator

anncwb commented Mar 10, 2021

热更新问题是因为vite2机制变了。然后项目中代码有一些循环依赖,这些解决了就可以。更新可以用git 的方式,添加多个仓库源,来进行同步。

@anncwb anncwb closed this as completed Mar 10, 2021
@anncwb
Copy link
Collaborator

anncwb commented Mar 10, 2021

跟这个问题其实是一样#301

@anncwb anncwb reopened this Mar 11, 2021
@anncwb
Copy link
Collaborator

anncwb commented Mar 11, 2021

这个问题可能还存在,我会在跟踪下

@hoozi
Copy link
Author

hoozi commented Mar 11, 2021

这个问题可能还存在,我会在跟踪下

现在是报这个错了 parentComponent.ctx.deactivate is not a function.

@anncwb
Copy link
Collaborator

anncwb commented Mar 11, 2021

这个问题跟热更新没关闭吧,你可以提供复现步骤给我

@hoozi
Copy link
Author

hoozi commented Mar 11, 2021

这个问题跟热更新没关闭吧,你可以提供复现步骤给我

这个确实是热更新出现的,我猜测是热更新的时候 哪个组件丢失了 找不到它的deactivate方法,我还在排查

@carl-jin
Copy link

能更新到thin-next版本吗, 我也想更新

thin昨天才更新。今天稍晚会更新

我都不知道要怎么更新,因为我在里面加了很多自己的东西。更新会覆盖掉吗

把冲突处理下就行了。 这个叫“同步上游版本“你搜下很多教程的

@carl-jin
Copy link

修改一个页面,vite hmr后菜单和标签全部丢失了T_T

看看是不是跟我这个问题一样, #376 我折腾了一个下午也没整懂

@anncwb anncwb closed this as completed Mar 17, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants