截图上限文案改用常量
useGameDistributionPublishForm.ts:超限报错里的 6 改用 MAX_AGC_GAME_SCREENSHOTS,避免与常量脱节。
This commit is contained in:
+2
-2
@@ -662,8 +662,8 @@ export function useGameDistributionPublishForm({
|
||||
if (files.length > remaining) {
|
||||
reportError(
|
||||
remaining > 0
|
||||
? `游戏截图最多 6 张,还可以再选 ${remaining} 张`
|
||||
: '游戏截图最多 6 张',
|
||||
? `游戏截图最多 ${MAX_AGC_GAME_SCREENSHOTS} 张,还可以再选 ${remaining} 张`
|
||||
: `游戏截图最多 ${MAX_AGC_GAME_SCREENSHOTS} 张`,
|
||||
);
|
||||
if (screenshotInputRef.current) screenshotInputRef.current.value = '';
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user