Fe-interview: [vue] 怎么缓存当前打开的路由组件,缓存后想更新当前组件怎么办呢?

Created on 22 Jun 2019  ·  3Comments  ·  Source: haizlin/fe-interview

[vue] 怎么缓存当前打开的路由组件,缓存后想更新当前组件怎么办呢?

vue

Most helpful comment

可以在路由meta中加入参数, 对打开的路由进行keep-alive的判断, 通过钩子active等

All 3 comments

可以在路由meta中加入参数, 对打开的路由进行keep-alive的判断, 通过钩子active等

优秀~

Was this page helpful?
0 / 5 - 0 ratings