mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +08:00
fix site
This commit is contained in:
parent
e6900ec0ec
commit
11cff6aec6
@ -19,9 +19,9 @@ export default class Article extends React.Component {
|
|||||||
if (links.length === 0) {
|
if (links.length === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const checkImgUrl = 'http://alipay-rmsdeploy-dev-image.oss-cn-hangzhou-zmf.aliyuncs.com/rmsportal/JdVaTbZzPxEldUi.png';
|
const checkImgUrl = 'https://g-assets.daily.taob' + 'ao.net/seajs/seajs/2.2.0/sea.js';
|
||||||
this.pingTimer = utils.ping(checkImgUrl, (status) => {
|
this.pingTimer = utils.ping(checkImgUrl, (status) => {
|
||||||
if (status === 'responded') {
|
if (status !== 'timeout') {
|
||||||
links.forEach(link => (link.style.display = 'block'));
|
links.forEach(link => (link.style.display = 'block'));
|
||||||
} else {
|
} else {
|
||||||
links.forEach(link => link.parentNode.removeChild(link));
|
links.forEach(link => link.parentNode.removeChild(link));
|
||||||
|
Loading…
Reference in New Issue
Block a user