mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-10 07:24:37 +08:00
feat: 分享中心过滤异常的命令
This commit is contained in:
parent
cec3fdfcae
commit
465c65264d
@ -1211,7 +1211,11 @@
|
||||
let res = await yuQueClient(`repos/${yuQueShareVars.releaseRepo}/docs`)
|
||||
let description, platform = window.processPlatform
|
||||
let docs = res.data.data
|
||||
.filter(d => JSON.parse(d.custom_description).platform.includes(platform))
|
||||
.filter(d => {
|
||||
try {
|
||||
return JSON.parse(d.custom_description).platform.includes(platform)
|
||||
} catch (error) { }
|
||||
})
|
||||
.sort((x, y) => {
|
||||
if (y.updated_at > x.updated_at) return 1
|
||||
else return -1
|
||||
|
Loading…
x
Reference in New Issue
Block a user