Skip to content

Commit

Permalink
fix: 优化本地图片完整链接展示错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Jan 1, 2023
1 parent 832f11d commit 1541a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/picgo/PicgoIndex.vue
Expand Up @@ -362,7 +362,7 @@ const initPage = async () => {
retImgs.forEach((retImg) => {
let isLocal = false
let imgUrl = retImg
if (imgUrl.indexOf("assets") > -1) {
if (!(imgUrl.indexOf("http") > -1) && imgUrl.indexOf("assets") > -1) {
const baseUrl = getSiyuanCfg().baseUrl
imgUrl = pathJoin(baseUrl, "/" + imgUrl)
isLocal = true
Expand Down

0 comments on commit 1541a00

Please sign in to comment.