Closed SheepYang1993 closed 3 months ago
列表页跳转详情,然后详情回到列表页,就刷新了
怎么样能避免列表页刷新?
是不是开发环境出现依赖变动导致的刷新呢?这是由于按需编译依赖其实无伤大雅,只会出现一次,生产环境也不会有这个问题。 要解决的话全量加载依赖(不推荐),或者试下 optimizeDeps.include 指定依赖预编译。https://github.com/vitejs/vite/issues/5419
optimizeDeps.include
列表页跳转详情,然后详情回到列表页,就刷新了
怎么样能避免列表页刷新?