Merge pull request #357 from ljt990218/fix-interceptor

feat(router): 添加对插件页面路径的路由拦截支持
This commit is contained in:
菲鸽
2025-12-02 13:58:51 +08:00
committed by GitHub

View File

@@ -38,6 +38,12 @@ export const navigateToInterceptor = {
return false // 明确表示阻止原路由继续执行
}
// 插件页面
if (url.startsWith('plugin://')) {
FG_LOG_ENABLE && console.log('路由拦截器 4: plugin:// 路径 ==>', url)
path = url
}
// 处理直接进入路由非首页时tabbarIndex 不正确的问题
tabbarStore.setAutoCurIdx(path)
},