Closed sunshineLi2019 closed 3 months ago
补充下 ice.config.mts 配置
补充下 ice.config.mts 配置
你好,已经更新了信息
使用了延迟 100 ms 的方式输出,暂时无法复现你的问题
@ClarkXia 当我使用defineDataLoader的时候页面会加载两次,无法正确的获取到history. 当我在app.ts请求拦截defineDataLoader的请求的时候history无法正确加载,其他页面的请求可以正确的使用history进行跳转
@sunshineLi2019 dataLoader 仅打包请求相关逻辑,因此入口 history 初始化等逻辑均未执行,后续我们在文档中标注下
Describe the bug
我期望在所有的请求中,当token失效的时候跳转到登录页,然而history在appts中是未加载的null. 我使用了官方文档的处理方式
Expected behavior
我期望获取到history
Actual behavior
实际上仍然为null. 我现在只能使用原生js的history进行路由跳转,但是这并不优雅. 我希望获取到合适的解决方案.用于处理当token失效的时候跳转到登录页这个需求.
Version of ice.js
3.4.8
Content of build.json or ice.config.mts
Additional context
No response