签到需要优化

This commit is contained in:
bobobobo
2025-12-29 22:38:25 +08:00
parent 417bfe235f
commit 8fe2079446
7 changed files with 412 additions and 272 deletions

View File

@@ -52,15 +52,28 @@
return styles
})
/** 上传 */
const uploadFile = async file => {
const url = await uploadSingleFile(file, {
url: '/api/common/admin/upload/up/single'
})
imageValue.value.push(url)
}
const onSelect = async e => {
e.tempFiles.forEach(v => {
uploadFile(v.path)
})
return
const upData = e.tempFiles.map(v => v.path)[0]
imageValue.value = await uploadSingleFile(upData, {
url: '/api/common/admin/upload/up/single'
})
}
const onDelete = () => {
imageValue.value = ''
const onDelete = e => {
imageValue.value.splice(e.index, 1)
}
</script>