File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/gui/src/view/pages Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ export default {
5050 }
5151 return false
5252 },
53+ githubStarBadgeUrl () {
54+ // 生成每天更新一次的缓存键,减少API调用频率
55+ const today = new Date ().toISOString ().split (' T' )[0 ] // YYYY-MM-DD
56+ return ` https://img.shields.io/github/stars/docmirror/dev-sidecar?logo=github&cacheSeconds=86400&t=${ today} `
57+ },
5358 },
5459 async created () {
5560 await this .doCheckRootCa ()
@@ -356,7 +361,7 @@ export default {
356361 </div >
357362 <a @click =" openExternal('https://github.com/docmirror/dev-sidecar')" ><img
358363 alt =" GitHub stars"
359- src =" https://img.shields.io/github/stars/docmirror/dev-sidecar?logo=github "
364+ : src =" githubStarBadgeUrl "
360365 ></a >
361366 </div >
362367 </div >
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export default {
100100 <a-radio-button value =" http://mirrors.sohu.com/Python/" title =" http://mirrors.sohu.com/Python/" >
101101 搜狐镜像
102102 </a-radio-button >
103- <a-radio-button value =" https://pypi.hustunique.com/ " title =" https://pypi.hustunique.com /" >
103+ <a-radio-button value =" https://mirrors.hust.edu.cn/pypi/web/simple/ " title =" https://mirrors.hust.edu.cn/pypi/web/simple /" >
104104 华中科大镜像
105105 </a-radio-button >
106106 <a-radio-button value =" http://pypi.sdutlinux.org/" title =" http://pypi.sdutlinux.org/" >
You can’t perform that action at this time.
0 commit comments