|
@@ -18,11 +18,11 @@ const getDetailShareData = (article) => { |
|
@@ -18,11 +18,11 @@ const getDetailShareData = (article) => { |
18
|
let desc = '';
|
18
|
let desc = '';
|
19
|
|
19
|
|
20
|
if (article.sort === 2) {
|
20
|
if (article.sort === 2) {
|
21
|
- shareImage = article.coverImage;
|
|
|
22
|
- desc = article.articleTitle;
|
21
|
+ shareImage = article.coverImage || '';
|
|
|
22
|
+ desc = article.articleTitle || '';
|
23
|
} else if (article.sort === 4) {
|
23
|
} else if (article.sort === 4) {
|
24
|
- shareImage = article.coverUrl;
|
|
|
25
|
- desc = article.content;
|
24
|
+ shareImage = article.coverUrl || '';
|
|
|
25
|
+ desc = article.content || '';
|
26
|
} else {
|
26
|
} else {
|
27
|
let blockList = get(article, 'blockList', []);
|
27
|
let blockList = get(article, 'blockList', []);
|
28
|
|
28
|
|