|
@@ -1204,6 +1204,14 @@ const organizeDetail = (doc, lang, imageType) => {
|
|
|
console.error(e.message);
|
|
console.error(e.message);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if (doc.copy) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ let copyJson = JSON.parse(doc.copy);
|
|
|
|
|
+ doc.copy = copyJson && copyJson[lang] ? copyJson[lang] : '';
|
|
|
|
|
+ } catch (e) {
|
|
|
|
|
+ console.error(e.message);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
doc.publishTime = format(new Date(doc.publishTime), 'yyyy-MM-dd');
|
|
doc.publishTime = format(new Date(doc.publishTime), 'yyyy-MM-dd');
|
|
|
|
|
|
|
|
doc.tags = doc.tags.filter(str => !/[\u4e00-\u9fa5]/.test(str)); // 过滤掉tags中的中文
|
|
doc.tags = doc.tags.filter(str => !/[\u4e00-\u9fa5]/.test(str)); // 过滤掉tags中的中文
|