|
|
@@ -541,17 +541,20 @@ const createDescMaxLength = computed(() => {
|
|
|
return max;
|
|
|
});
|
|
|
|
|
|
-// 平台提示文案
|
|
|
+// 平台提示文案 - Bug #6152: 每个平台单独展示其要求,避免看不出是哪个平台的要求
|
|
|
const createPlatformHint = computed(() => {
|
|
|
const platforms = createSelectedPlatforms.value;
|
|
|
if (!platforms.length) return '';
|
|
|
- const names = platforms.map(p => PLATFORMS[p]?.name || p).join('、');
|
|
|
- const tips: string[] = [];
|
|
|
- if (createRequireTitle.value) tips.push('标题必填');
|
|
|
- if (createRequireDescription.value) tips.push('正文必填');
|
|
|
- if (createRequireVideo.value) tips.push('视频必填');
|
|
|
- if (createRequireImage.value) tips.push('图片或视频必填');
|
|
|
- return `已选平台:${names}。要求:${tips.join('、')}`;
|
|
|
+
|
|
|
+ return platforms.map(p => {
|
|
|
+ const name = PLATFORMS[p]?.name || p;
|
|
|
+ const tips: string[] = [];
|
|
|
+ if (PLATFORM_PUBLISH_REQUIREMENTS[p]?.requireTitle) tips.push('标题必填');
|
|
|
+ if (PLATFORM_PUBLISH_REQUIREMENTS[p]?.requireDescription) tips.push('正文必填');
|
|
|
+ if (PLATFORM_PUBLISH_REQUIREMENTS[p]?.requireVideo) tips.push('视频必填');
|
|
|
+ if (PLATFORM_PUBLISH_REQUIREMENTS[p]?.requireImage) tips.push('图片或视频必填');
|
|
|
+ return tips.length > 0 ? `${name}:${tips.join('、')}` : `${name}`;
|
|
|
+ }).join(';');
|
|
|
});
|
|
|
|
|
|
const pagination = reactive({
|