提交 e56c1caf 编写于 作者: X xjh22222228

fix: img logo

上级 3e2301af
......@@ -60,7 +60,7 @@ export const GIT_REPO_URL = 'https://github.com/xjh22222228/nav'
// 错误图标, 图标地址访问不了时显示
// 建议使用网络地址,放在您任何服务器上, 减少入侵
export const ERROR_ICON = 'assets/img/transparent.gif'
export const ERROR_ICON = ''
// 网站底部描述, 可以是 HTML
// 可以是版权信息,备案号
......
......@@ -814,6 +814,12 @@ export default {
'https://github.com/apache/incubator-echarts'
]
},
{
icon: 'https://avatars1.githubusercontent.com/u/1562726?s=200&v=4',
name: 'd3',
desc: '借助SVG,Canvas和HTML使数据栩栩如生。',
url: 'https://github.com/d3/d3',
},
]
},
{
......
......@@ -5,6 +5,11 @@ const nav = {
{
title: '开发神器',
nav: [
{
name: 'releasly',
desc: '在新的开源版本发布时收到通知,直接发送到您的电子邮件中。',
url: 'https://www.releasly.co/',
},
{
name: 'Convert cURL',
desc: '将curl命令转换为Python,JavaScript,PHP,R,Go,Rust,Dart,JSON,Ansible,Elixir。',
......
......@@ -110,7 +110,12 @@ export function randomBgImg() {
}
export function onImgError(e: any) {
e.target.src = ERROR_ICON
if (ERROR_ICON) {
e.target.src = ERROR_ICON
} else {
const el = e.target
el.parentNode.removeChild(el)
}
}
export function queryString() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册