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]: 无法显示网页(一直白屏加载) #1365

Closed
yehao-li opened this issue Mar 2, 2023 · 6 comments
Closed

[Bug]: 无法显示网页(一直白屏加载) #1365

yehao-li opened this issue Mar 2, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@yehao-li
Copy link

yehao-li commented Mar 2, 2023

gin-vue-admin 版本

2.5.5

Node 版本

v18.14.2

Golang 版本

go 1.20.1

是否依旧存在

可以

bug描述

  1. 更改菜单中dashboard名(非展示名)为Dashboard(或其他名字)
  2. 不可改的路由path也会跟着一起被修改
  3. 刷新后无法显示网页(一直白屏加载),但前后端均不报错
  4. 修改mysql中对应记录后恢复正常

修改建议

dashboard的名字设置为不可更改,或修改路由path跟着一起更改的逻辑

@yehao-li yehao-li added the bug Something isn't working label Mar 2, 2023
@yehao-li
Copy link
Author

yehao-li commented Mar 2, 2023

可能是dashboard默认为起始页路由的原因,我使用的时候是切换了角色,刷新,导致无法加载出任何网页,因此也无法在页面上进行任何修改,抱歉没有说明白

@Shiban22
Copy link

gin-vue-admin 同版本2.5.5
go : 1.20
node : 18.15.0
跟随旧厂街项目:banner后端开发视频,添加完角色用户后,只展示轮播图的父级目录。更换了前端banner的目录名字为bannerfish,同样修改菜单路径后,还是无法加载轮播图,又把bannerfish目录名字修改回去,此时重启前台,前台界面一直加载白屏。F12发现报错:e-router.mjs:35 [Vue Router warn]: Unexpected error when starting the router: Error: No match for
{"name":"dashboard","params":{}}
at createRouterError (vue-router.mjs:798:23)
at Object.resolve (vue-router.mjs:1414:23)
at resolve (vue-router.mjs:3045:38)
at vue-router.mjs:3179:63
warn @ vue-router.mjs:35
(anonymous) @ vue-router.mjs:3532
Promise.catch (async)
install @ vue-router.mjs:3530
use @ runtime-core.esm-bundler.js:4399
(anonymous) @ main.js:41
后台无报错,前台报错为:22:02:13 [vite] http proxy error at /menu/getMenu:
Error: connect ECONNREFUSED 127.0.0.1:8888
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)

@Xue0919
Copy link

Xue0919 commented May 4, 2023

这个问题是什么原因导致的啊,现在有解决吗,我也遇见了同样的问题

Duya07 pushed a commit to Duya07/gin-vue-admin that referenced this issue Jun 22, 2023
@JunIce JunIce mentioned this issue Jul 2, 2023
songzhibin97 pushed a commit that referenced this issue Oct 11, 2023
* fix(web): 修复默认不存在时跳转问题

* feature(web): 图片组件增加预览
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
Status: Done
Development

No branches or pull requests

7 participants
@SliverHorn @songzhibin97 @bypanghu @yehao-li @Shiban22 @Xue0919 and others