flat: 暂存
This commit is contained in:
@@ -14,6 +14,14 @@ import {
|
||||
import website from "@/config/website.js"
|
||||
|
||||
export async function uploadFile(file) {
|
||||
if (file.size > 20971520) {
|
||||
uni.showToast({
|
||||
title: '图片过大,应该小于20m',
|
||||
duration: 1000,
|
||||
icon: 'none',
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '上传中'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user