1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2026-05-13 19:35:07 +00:00

fix: use MAX_IMAGE_SIZE_MB constant consistently in template and error messages

Agent-Logs-Url: https://github.com/ZeroCatDev/Classworks/sessions/6dfae4c0-df49-4612-88b8-9e31287538b0

Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-11 13:58:41 +00:00 committed by GitHub
parent c4279acdae
commit 1f33d6d637
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,7 @@
>
<v-icon size="40" color="primary" class="mb-2">mdi-image-plus</v-icon>
<div class="text-body-2">点击或拖拽图片到此处上传</div>
<div class="text-caption text-medium-emphasis mt-1">支持 JPGPNGWebPGIF建议小于 2MB</div>
<div class="text-caption text-medium-emphasis mt-1">支持 JPGPNGWebPGIF建议小于 {{ maxImageSizeMB }}MB</div>
<input
ref="fileInput"
type="file"
@ -222,6 +222,7 @@ export default {
uploadWarning: '',
urlPresets: URL_PRESETS,
settingItemKey: 0,
maxImageSizeMB: MAX_IMAGE_SIZE_MB,
};
},