Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 动态路由下如果加载路由失败就会卡住 #216

Closed
minosss opened this issue Apr 20, 2023 · 0 comments
Closed

[Bug]: 动态路由下如果加载路由失败就会卡住 #216

minosss opened this issue Apr 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@minosss
Copy link

minosss commented Apr 20, 2023

软件版本

0.9.9

运行环境

MacOS

运行架构

None

重现步骤

设置动态路由

VITE_AUTH_ROUTE_MODE=dynamic

登录状态下

设置 /mock/getUserRoutescode 不等于 200,触发接口错误

导致路由网关的 route.initAuthRoute 错误 isInitAuthRoute 未设置。
进入循环,因为不管走哪个 next 都会重新验证路由

期望的结果是什么?

如果远程路由加载失败

  1. 内置路由通过
  2. 或者 404
  3. 或者 401 去登录

实际的结果是什么?

日志记录(可选)

No response

补充说明(可选)

No response

@honghuangdc honghuangdc added the bug Something isn't working label Apr 20, 2023
YeYinhai added a commit to YeYinhai/soybean-admin that referenced this issue Apr 26, 2023
commit 5a4f842
Author: Soybean <honghuangdc@gmail.com>
Date:   Wed Apr 26 08:39:30 2023 +0800

    docs(projects): update README.md [更新README.md]

commit bae1767
Author: Soybean <honghuangdc@gmail.com>
Date:   Wed Apr 26 08:32:54 2023 +0800

    build(deps): update deps [升级依赖]

commit 5957833
Author: Soybean <honghuangdc@gmail.com>
Date:   Fri Apr 21 00:44:40 2023 +0800

    fix(projects): fix router guide [修复路由跳转异常] fixed soybeanjs#216

commit 397092c
Author: Soybean <honghuangdc@gmail.com>
Date:   Thu Apr 20 00:15:00 2023 +0800

    docs(projects): update README.md [更新README.md]

commit f309003
Author: Soybean <honghuangdc@gmail.com>
Date:   Thu Apr 20 00:10:00 2023 +0800

    refactor(projects): remove page examples: tree [去除tree相关示例页面]

commit eaf3678
Author: Soybean <honghuangdc@gmail.com>
Date:   Thu Apr 20 00:02:00 2023 +0800

    build(deps): update deps and remove vite-plugin-html [升级依赖,去除vite-plugin-html]

commit f2e82da
Author: Soybean <honghuangdc@gmail.com>
Date:   Wed Apr 19 08:25:00 2023 +0800

    build(deps): update deps [升级依赖]

commit 211ae1f
Author: Soybean <honghuangdc@gmail.com>
Date:   Tue Apr 4 19:19:13 2023 +0800

    refactor(projects): update useTable

commit db62959
Author: Soybean <honghuangdc@gmail.com>
Date:   Sun Apr 2 12:57:36 2023 +0800

    build(deps): update deps

commit 80d58cc
Merge: f74a642 a0f55ac
Author: Soybean <49704545+honghuangdc@users.noreply.github.com>
Date:   Sun Apr 2 12:56:00 2023 +0800

    Merge pull request soybeanjs#210 from SonyLeo/feature/tree

    Feature/tree

commit a0f55ac
Author: small_happy <5304122+small_happy@user.noreply.gitee.com>
Date:   Sun Apr 2 10:45:51 2023 +0800

    feat(components): Add routing data related to tree components and page display optimization

commit d203a35
Author: small_happy <5304122+small_happy@user.noreply.gitee.com>
Date:   Sun Apr 2 10:07:50 2023 +0800

    feat(components): Add tree related component instances
YeYinhai added a commit to YeYinhai/soybean-admin that referenced this issue Apr 26, 2023
commit c3f0a7a
Author: yyh <362127358@qq.com>
Date:   Wed Apr 26 15:53:12 2023 +0800

    build(projects): Squashed commit of the following:

    commit 9ada6b3
    Author: yyh <362127358@qq.com>
    Date:   Wed Apr 26 14:24:00 2023 +0800

        feat(deps): 替换了提交规范脚手架

    commit 48cb98b
    Author: yyh <362127358@qq.com>
    Date:   Wed Apr 26 13:40:25 2023 +0800

        feat(projects): 新增格式化配置文件

    commit 65f7a62
    Author: yyh <362127358@qq.com>
    Date:   Tue Apr 11 16:49:03 2023 +0800

        feat(projects): 新增 iframe 模式

    commit 24bbce3
    Author: yyh <362127358@qq.com>
    Date:   Tue Apr 11 11:38:40 2023 +0800

        style(projects): 格式化

    commit e8ad263
    Author: yyh <362127358@qq.com>
    Date:   Tue Apr 11 11:34:11 2023 +0800

        feat(projects): 新增Iframe布局模式

    commit 0145520
    Author: yyh <362127358@qq.com>
    Date:   Tue Mar 28 17:18:03 2023 +0800

        feat(projects):about2 测试页面

    commit 598305f
    Author: yyh <362127358@qq.com>
    Date:   Tue Mar 28 11:37:27 2023 +0800

        feat: 新增elementui

     Conflicts:
    	package.json

commit 018acb7
Author: yyh <362127358@qq.com>
Date:   Wed Apr 26 14:38:25 2023 +0800

    Squashed commit of the following:

    commit 5a4f842
    Author: Soybean <honghuangdc@gmail.com>
    Date:   Wed Apr 26 08:39:30 2023 +0800

        docs(projects): update README.md [更新README.md]

    commit bae1767
    Author: Soybean <honghuangdc@gmail.com>
    Date:   Wed Apr 26 08:32:54 2023 +0800

        build(deps): update deps [升级依赖]

    commit 5957833
    Author: Soybean <honghuangdc@gmail.com>
    Date:   Fri Apr 21 00:44:40 2023 +0800

        fix(projects): fix router guide [修复路由跳转异常] fixed soybeanjs#216

    commit 397092c
    Author: Soybean <honghuangdc@gmail.com>
    Date:   Thu Apr 20 00:15:00 2023 +0800

        docs(projects): update README.md [更新README.md]

    commit f309003
    Author: Soybean <honghuangdc@gmail.com>
    Date:   Thu Apr 20 00:10:00 2023 +0800

        refactor(projects): remove page examples: tree [去除tree相关示例页面]

    commit eaf3678
    Author: Soybean <honghuangdc@gmail.com>
    Date:   Thu Apr 20 00:02:00 2023 +0800

        build(deps): update deps and remove vite-plugin-html [升级依赖,去除vite-plugin-html]

    commit f2e82da
    Author: Soybean <honghuangdc@gmail.com>
    Date:   Wed Apr 19 08:25:00 2023 +0800

        build(deps): update deps [升级依赖]

    commit 211ae1f
    Author: Soybean <honghuangdc@gmail.com>
    Date:   Tue Apr 4 19:19:13 2023 +0800

        refactor(projects): update useTable

    commit db62959
    Author: Soybean <honghuangdc@gmail.com>
    Date:   Sun Apr 2 12:57:36 2023 +0800

        build(deps): update deps

    commit 80d58cc
    Merge: f74a642 a0f55ac
    Author: Soybean <49704545+honghuangdc@users.noreply.github.com>
    Date:   Sun Apr 2 12:56:00 2023 +0800

        Merge pull request soybeanjs#210 from SonyLeo/feature/tree

        Feature/tree

    commit a0f55ac
    Author: small_happy <5304122+small_happy@user.noreply.gitee.com>
    Date:   Sun Apr 2 10:45:51 2023 +0800

        feat(components): Add routing data related to tree components and page display optimization

    commit d203a35
    Author: small_happy <5304122+small_happy@user.noreply.gitee.com>
    Date:   Sun Apr 2 10:07:50 2023 +0800

        feat(components): Add tree related component instances

# Conflicts:
#	package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants