优化代码

This commit is contained in:
wuxw 2024-09-14 15:12:39 +08:00
parent 73a8c1bbac
commit e646d8b9b8

View File

@ -37,9 +37,9 @@
success: (res) => {
console.log(res);
if (res.tempFiles[0].size / 1024 / 1024 > 20) {
_that.$refs.uToast.show({
title: '附件大小不能超过20M',
type: 'warning',
uni.showToast({
icon:'none',
title:'附件大小不能超过20M'
})
return;
}
@ -55,9 +55,9 @@
success: (res) => {
console.log(res);
if (res.tempFiles[0].size / 1024 / 1024 > 20) {
_that.$refs.uToast.show({
title: '附件大小不能超过20M',
type: 'warning',
uni.showToast({
icon:'none',
title:'附件大小不能超过20M'
})
return;
}