签到需要优化
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user