refactor: 首页优化

This commit is contained in:
wangjiahao 2022-01-26 15:30:01 +08:00
parent a3a30a74db
commit e20e236391
3 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,6 @@
package io.dataease.service.wizard;
import io.dataease.commons.utils.HttpClientConfig;
import io.dataease.commons.utils.HttpClientUtil;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
@ -23,8 +24,10 @@ public class ReptileService {
public List lastActive() {
List result = new ArrayList();
try {
HttpClientConfig config = new HttpClientConfig();
config.setCocketTimeout(5000);
//爬取最新数据
Document doc = Jsoup.parse(HttpClientUtil.get(blogUrl, null));
Document doc = Jsoup.parse(HttpClientUtil.get(blogUrl, config));
Elements elementsContent = doc.getElementsByAttributeValue("rel", "bookmark");
Elements elementsTime = doc.getElementsByTag("time");
for(int i = 0;i<infoCount;i++){
@ -36,6 +39,7 @@ public class ReptileService {
result.add(infoMap);
}
} catch (Exception e) {
e.printStackTrace();
//ignore
Map<String, String> infoMap = new HashMap();
infoMap.put("title","支持移动端展示数据源新增对DB2的支持DataEase开源数据可视化分析平台v1.6.0发布");

View File

@ -82,7 +82,7 @@ export default {
color: var(--TextPrimary, #6D6D6D);
font-size: 12px;
position: absolute;
bottom: 8px;
bottom: 16px;
}
}
}

View File

@ -42,7 +42,7 @@ export default {
head: this.$t('wizard.online_document'),
content: this.$t('wizard.online_document_hint'),
bottom: '',
href: 'https://dataease.io/docs/dev_manual/dev_manual/',
href: 'https://dataease.io/docs/index.html',
component: 'CardDetail'
},
{