KUN1007 / kun-galgame-vue

The CUTEST Visual Novel / Galgame Forum! KUN Visual Novel Forum front-end project
https://www.kungal.com
GNU Affero General Public License v3.0
87 stars 8 forks source link

登录后白页,点击个人主页404 #21

Closed xiaohuo-desu closed 11 months ago

xiaohuo-desu commented 11 months ago

Describe the bug A clear and concise description of what the bug is. 当登录成功时,概率性出现白页的情况(见图1),在加载时同时会加载一个叫做“None”的空html页面(见图2)。 如果在此时刷新,则会进入403错误页。 在此时点击个人中心,就会进入404页,(见图3),并且加载中并不会加载个人中心的链接

To Reproduce Steps to reproduce the behavior:

  1. 登录
  2. 观察加载情况,如白页或出现None则可以继续复现
  3. 点击头像-个人主页,发生图3
  4. 点击返回主页,刷新,发生404

Expected behavior 正确情况应为登录后正常显示主页,且点击任意链接应正常加载页面,本BUG会导致点击任意按钮无法触发加载页面。

Screenshots If applicable, add screenshots to help explain your problem. 图1:image 图2:image 图3: image

Additional context Add any other context about the problem here. 本问题与#15 类似

KUN1007 commented 11 months ago

Thanks for your report.

The issue has been fixed. The root cause of this problem was the use of the resetRouter function, which reset the Vue Router. However, I did not reload the routes when entering the page. I have now removed the resetRouter function.