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

切换标签页页面一直处于加载状态,Cannot access 'ScrollContainer' before initialization。 #6920

Closed
Excins opened this issue Jul 18, 2024 · 8 comments

Comments

@Excins
Copy link

Excins commented Jul 18, 2024

版本号:

3.7.0

问题描述:

页面一直处于加载状态。截图显示的内容是上一个标签页内容,还没切换到当前标签页。
Cannot access 'ScrollContainer' before initialization
错误发生位置:IconList.vue:52。
可能复现错误的方法:假设打开菜单A,然后去源码里修改与A页面无关的代码。回到浏览器点击菜单B,错误也许会复现。
去切换长期未切换菜单。

错误截图:

image

image

友情提示:

  • 未按格式要求发帖、描述过于简单的,会被直接删掉;
  • 描述问题请图文并茂,方便我们理解并快速定位问题;
  • 如果使用的不是master,请说明你使用的分支;
@zhangdaiscott
Copy link
Member

ScrollContainer 是你自己写的逻辑吧

@Excins
Copy link
Author

Excins commented Jul 18, 2024

IconList.vue这是框架自己的东西。

@zhangdaiscott
Copy link
Member

重新步骤?

@chenmonkey
Copy link

开发模式下,修改代码之后,再回到页面,控制台就会报这个错误

@Excins
Copy link
Author

Excins commented Jul 19, 2024

问题描述里面有,大概就是楼上说的。

@wyx666518
Copy link

3.7.0是有这个问题,偶发性问题

@Xgs97
Copy link

Xgs97 commented Jul 25, 2024

image
把ScrollContainer的引入放在最后面

@liaozhiyang
Copy link
Contributor

已修复,下版本发布。

可在这个组件中把 ScrollContainer 删除,这个在实际中没用到。

可在本地 src/components/Icon/src/IconList.vue 文件按如下图进行修改:
image

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

6 participants