showdoc icon indicating copy to clipboard operation
showdoc copied to clipboard

最新版的,刷新页面后,加载内容有延迟

Open e3600 opened this issue 8 months ago • 4 comments

最新版的,刷新页面后,加载内容有延迟,跟了一下源码,发现在这个文件 web_src/src/components/item/show/show_regular_item/LeftMenu.vue,大概在505行,也可以直接搜索关键词“延迟把左侧栏滚动到默认展开的那个页面,同时设置选中当前页面” 这里有个延迟1000毫秒,是有什么原因吗?,我改为100,目前没发现有什么问题。

e3600 avatar May 18 '25 13:05 e3600

有应该只是防止一秒内目录菜单没渲染完的。有些项目比较大。

star7th avatar May 18 '25 13:05 star7th

两边的请求和渲染都是独立的,没有影响吧

e3600 avatar May 19 '25 13:05 e3600

我是说加载左边的目录菜单树

star7th avatar May 20 '25 00:05 star7th

其实具体的代码逻辑我也不会记得很清楚。既然你那边没问题就没问题了。我这边不会做修改,因为可能历史上这样设置是为了兼容很多不同情况

star7th avatar May 20 '25 01:05 star7th