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) => {
|
success: (res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.tempFiles[0].size / 1024 / 1024 > 20) {
|
if (res.tempFiles[0].size / 1024 / 1024 > 20) {
|
||||||
_that.$refs.uToast.show({
|
uni.showToast({
|
||||||
title: '附件大小不能超过20M',
|
icon:'none',
|
||||||
type: 'warning',
|
title:'附件大小不能超过20M'
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -55,9 +55,9 @@
|
|||||||
success: (res) => {
|
success: (res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.tempFiles[0].size / 1024 / 1024 > 20) {
|
if (res.tempFiles[0].size / 1024 / 1024 > 20) {
|
||||||
_that.$refs.uToast.show({
|
uni.showToast({
|
||||||
title: '附件大小不能超过20M',
|
icon:'none',
|
||||||
type: 'warning',
|
title:'附件大小不能超过20M'
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user