flat: 暂存

This commit is contained in:
Apcallover
2024-05-16 17:12:34 +08:00
parent 0113864d1c
commit 73e8bd5bb6
4 changed files with 13 additions and 0 deletions

View File

@@ -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: '上传中'
})