Subscribe on changes!

keep-alive 失效

avatar
Dec 23rd 2021

Version

3.2.26

Reproduction link

codesandbox.io

Steps to reproduce

1.点击页面 pageA pageB button 切换pageA 和pageB 页面

What is expected?

期望 pageA 和pageB 第一次加载后 以后会被缓存

What is actually happening?

实际每次切换都会被重新加载

avatar
Dec 23rd 2021

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.

—-

You should probably remove the key attribute from the router view and only put it on the component

avatar
Dec 24th 2021

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.

—-

You should probably remove the key attribute from the router view and only put it on the component

thanks