mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-23 21:36:39 +08:00
优化代码
This commit is contained in:
parent
73a8c1bbac
commit
e646d8b9b8
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user