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

页面缓存问题 #695

Closed
hanxiang-li opened this issue Jun 3, 2021 · 0 comments
Closed

页面缓存问题 #695

hanxiang-li opened this issue Jun 3, 2021 · 0 comments

Comments

@hanxiang-li
Copy link

在 \src\store\modules\multipleTab.ts 中 第62行中的
for (const tab of this.tabList) { const item = getRawRoute(tab); // Ignore the cache const needCache = !item.meta?.ignoreKeepAlive; if (!needCache) { return; } const name = item.name as string; cacheMap.add(name); }
此段代码中,for循环不应使用 return, 应使用 continue 结束本次循环,而不是结束整个循环,
此外 !item.meta?.ignoreKeepAlive; 中第一个!符号是否多余,因下行代码 !needCache

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