mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 11:58:49 +01:00
🎨 pdf?page 资源文件链接会被判定为未引用资源 Fix https://github.com/siyuan-note/siyuan/issues/5649
This commit is contained in:
parent
811d088ff0
commit
103cbf8d15
4 changed files with 30 additions and 17 deletions
|
|
@ -573,6 +573,11 @@ func UnusedAssets() (ret []string) {
|
|||
continue
|
||||
}
|
||||
|
||||
if idx := strings.Index(dest, "?"); 0 < idx {
|
||||
// `pdf?page` 资源文件链接会被判定为未引用资源 https://github.com/siyuan-note/siyuan/issues/5649
|
||||
dest = dest[:idx]
|
||||
}
|
||||
|
||||
if "" == assetsPathMap[dest] {
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue