forked from github/dataease
refactor: 首页优化
This commit is contained in:
parent
584b8a1f43
commit
17c9b3eac9
@ -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发布");
|
||||
|
@ -82,7 +82,7 @@ export default {
|
||||
color: var(--TextPrimary, #6D6D6D);
|
||||
font-size: 12px;
|
||||
position: absolute;
|
||||
bottom: 8px;
|
||||
bottom: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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'
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user