Skip to main content

prefetch

Function prefetch 

Source
pub fn prefetch(route: &str, with_data: bool, is_admin: bool)
Expand description

预取目标路由:总是预取视图分包;with_data 时再预取页面数据。 is_admin 为假时跳过 /admin*:访客悬停后台链接不下载后台分包。