There was an error while loading. Please reload this page.
1 parent 285c62d commit 751fbc3Copy full SHA for 751fbc3
1 file changed
src/post/collection.vue
@@ -350,6 +350,9 @@ export default {
350
if (collection) {
351
for (let i in collection.posts) {
352
let item = collection.posts[i];
353
+ if (item.type === "custom") {
354
+ collection.posts[i].custom_title = item.custom_title || item.title || "";
355
+ }
356
collection.posts[i].posts =
357
item.type === "custom"
358
? null
@@ -384,6 +387,7 @@ export default {
384
387
break;
385
388
}
386
389
if (item.type === "custom") {
390
+ item.title = item.custom_title ? item.custom_title.trim() : "";
391
if (!item.url) {
392
message = "请填写正确的小册文章链接(http或https开头)";
393
0 commit comments