yangxinni

Results 1 issues of yangxinni

keepalive组件包裹了一个A组件,A组件可以渲染B组件或者C组件,在切换渲染的时候B、C会有一个输入框,切换状态时输入框的输入状态会丢失。但是做路由切换的时候、输入状态不会被清空。请问大佬们,这个问题该怎么解决啊? ![image](https://user-images.githubusercontent.com/53033515/183092278-01048114-5ef6-48cd-92cd-a785c46be219.png) ![image](https://user-images.githubusercontent.com/53033515/183092373-ae08b206-60e1-43e2-b64f-f5ffb50ee97b.png) ![image](https://user-images.githubusercontent.com/53033515/183092434-528ea519-c7b0-4e3c-8f24-c9bd840f18c4.png) ![image](https://user-images.githubusercontent.com/53033515/183092546-77def612-a63d-4b0e-abba-bb6e08dbe196.png)