diff --git a/frontend/src/views/login-sjtb/index.vue b/frontend/src/views/login-sjtb/index.vue index ae94e2f..9363310 100644 --- a/frontend/src/views/login-sjtb/index.vue +++ b/frontend/src/views/login-sjtb/index.vue @@ -313,7 +313,7 @@ const forgotPasswordRules = ref({ } ], confirmPassword: [ - { required: true, message: "请再次输入密码", trigger: "blur" }, + // { required: true, message: "请再次输入密码", trigger: "blur" }, { validator: (rule: any, value: string) => { if (!value) { diff --git a/frontend/src/views/register/index.vue b/frontend/src/views/register/index.vue index 03ef3b6..5b75f8b 100644 --- a/frontend/src/views/register/index.vue +++ b/frontend/src/views/register/index.vue @@ -237,7 +237,6 @@ const registerRules = { // 密码 password: [ - { required: true, message: "请输入密码", trigger: "blur" }, { validator: (rule: any, value: string) => { if (!value) { diff --git a/frontend/src/views/shuJuTianBao/guoYuSheShiShuJuTianBao/guoYuSheShiShuJuTianBaoForm.vue b/frontend/src/views/shuJuTianBao/guoYuSheShiShuJuTianBao/guoYuSheShiShuJuTianBaoForm.vue index d7b80ce..1905869 100644 --- a/frontend/src/views/shuJuTianBao/guoYuSheShiShuJuTianBao/guoYuSheShiShuJuTianBaoForm.vue +++ b/frontend/src/views/shuJuTianBao/guoYuSheShiShuJuTianBao/guoYuSheShiShuJuTianBaoForm.vue @@ -530,9 +530,9 @@ const beforeImageUpload: UploadProps["beforeUpload"] = (file) => { message.error("只能上传 JPG/PNG/JPEG 格式的图片!"); return Upload.LIST_IGNORE; } - const isLt2M = file.size / 1024 / 1024 < 5; // 限制5M,可根据需求调整 + const isLt2M = file.size / 1024 / 1024 < 10; // 限制10M,可根据需求调整 if (!isLt2M) { - message.error("图片大小不能超过 5MB!"); + message.error("图片大小不能超过 10MB!"); return Upload.LIST_IGNORE; } // 返回 false 阻止自动上传,我们手动处理 @@ -546,9 +546,9 @@ const beforeVideoUpload: UploadProps["beforeUpload"] = (file) => { message.error("只能上传 MP4 格式的视频!"); return Upload.LIST_IGNORE; } - const isLt50M = file.size / 1024 / 1024 < 10; // 限制50M,可根据需求调整 + const isLt50M = file.size / 1024 / 1024 < 20; // 限制20M,可根据需求调整 if (!isLt50M) { - message.error("视频大小不能超过 10MB!"); + message.error("视频大小不能超过 20MB!"); return Upload.LIST_IGNORE; } // 返回 false 阻止自动上传 diff --git a/frontend/src/views/shuJuTianBao/guoYuSheShiShuJuTianBao/guoYuSheShiShuJuTianBaoSearch.vue b/frontend/src/views/shuJuTianBao/guoYuSheShiShuJuTianBao/guoYuSheShiShuJuTianBaoSearch.vue index 9cd4e1a..68d13c6 100644 --- a/frontend/src/views/shuJuTianBao/guoYuSheShiShuJuTianBao/guoYuSheShiShuJuTianBaoSearch.vue +++ b/frontend/src/views/shuJuTianBao/guoYuSheShiShuJuTianBao/guoYuSheShiShuJuTianBaoSearch.vue @@ -57,7 +57,7 @@ diff --git a/frontend/src/views/shuJuTianBao/guoYuSheShiShuJuTianBao/index.vue b/frontend/src/views/shuJuTianBao/guoYuSheShiShuJuTianBao/index.vue index 65c6bbb..0470d45 100644 --- a/frontend/src/views/shuJuTianBao/guoYuSheShiShuJuTianBao/index.vue +++ b/frontend/src/views/shuJuTianBao/guoYuSheShiShuJuTianBao/index.vue @@ -778,10 +778,10 @@ const handleFileSelect = (e: Event) => { const file = target.files?.[0]; if (!file) return; - // 校验文件大小 (50MB) - const maxSize = 50 * 1024 * 1024; + // 校验文件大小 (300MB) + const maxSize = 300 * 1024 * 1024; if (file.size > maxSize) { - message.error("文件大小不能超过50MB"); + message.error("文件大小不能超过300MB"); resetFileInput(); return; }