Skip to content

Commit 116b144

Browse files
authored
Merge pull request #72 from log-z/dev 优化收藏站点图标的加载效果
优化收藏站点图标的加载效果
2 parents 9c6d0ef + 6cdd1c2 commit 116b144

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/assets/img/none.svg

+1
Loading

src/components/nav-favorites/nav-favorite-item.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ import $_ from 'lodash'
7272
import { useConfigStore } from '@/stores/config'
7373
import { httpAbsPath } from '@/utils/common'
7474
import { imgApi, ghCli, isGithubUrl } from '@/utils/request'
75+
import loadingIcon from '@/assets/img/none.svg'
7576
7677
const configStore = useConfigStore()
7778
@@ -154,7 +155,7 @@ function fetchIconUrl(url, onDark) {
154155
state.iconBlobUrl = DEFAULT_ICON_URL
155156
}
156157
})
157-
return DEFAULT_ICON_URL
158+
return loadingIcon
158159
}
159160
160161
return url

0 commit comments

Comments
 (0)