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:
parent
c4279acdae
commit
1f33d6d637
@ -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">支持 JPG、PNG、WebP、GIF(建议小于 2MB)</div>
|
||||
<div class="text-caption text-medium-emphasis mt-1">支持 JPG、PNG、WebP、GIF(建议小于 {{ 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,
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user