...
|
...
|
@@ -69,7 +69,7 @@ |
69
|
69
|
class="ant-upload-text flex"
|
70
|
70
|
style="width: 280px; height: 130px; align-items: center; font-size: 0.5625rem"
|
71
|
71
|
>
|
72
|
|
- 支持.PNG、.JPG格式,建议尺寸为1920*1080px以上,大小不超过5M</div
|
|
72
|
+ 支持.PNG、.JPG格式,建议尺寸为1920*1080px以上,大小不超过2M</div
|
73
|
73
|
>
|
74
|
74
|
</div>
|
75
|
75
|
</Upload>
|
...
|
...
|
@@ -99,8 +99,6 @@ |
99
|
99
|
import { PlusOutlined } from '@ant-design/icons-vue';
|
100
|
100
|
import { useUserStore } from '/@/store/modules/user';
|
101
|
101
|
import { createLocalStorage } from '/@/utils/cache/index';
|
102
|
|
- import { useTitle } from '@vueuse/core';
|
103
|
|
- import { useGlobSetting } from '/@/hooks/setting';
|
104
|
102
|
export default defineComponent({
|
105
|
103
|
components: {
|
106
|
104
|
BasicForm,
|
...
|
...
|
@@ -192,9 +190,9 @@ |
192
|
190
|
if (!isJpgOrPng) {
|
193
|
191
|
createMessage.error('只能上传图片文件!');
|
194
|
192
|
}
|
195
|
|
- const isLt2M = (file.size as number) / 1024 / 1024 < 5;
|
|
193
|
+ const isLt2M = (file.size as number) / 1024 / 1024 < 2;
|
196
|
194
|
if (!isLt2M) {
|
197
|
|
- createMessage.error('图片大小不能超过5MB!');
|
|
195
|
+ createMessage.error('图片大小不能超过2MB!');
|
198
|
196
|
}
|
199
|
197
|
return isJpgOrPng && isLt2M;
|
200
|
198
|
};
|
...
|
...
|
|