提交 dfadae95 编写于 作者: View Design's avatar View Design

Update Source.vue

上级 7f7d1403
......@@ -61,7 +61,7 @@ function getIconPath (url) {
if (!url || !url.startsWith('http')) return ''
const uri = new URL(url)
if (uri.origin.endsWith('github.com')) return 'github'
return `https://www.google.com/s2/favicons?sz=128&domain=${url}`
return `https://toolb.cn/favicon/${url}`
}
function getDomain(url) {
// 使用正则表达式匹配协议和域名部分
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册