Commit e81c4b06 by qlintonger xeno

添加内容+9

parent a9624d26
......@@ -39,21 +39,21 @@
</div>
<div class="px-4 py-2">
<a-space size="medium">
<a-upload :show-file-list="false" accept="image/*" :custom-request="uploadMuFile" @change="handleChange">
<a-upload :show-file-list="false" accept="image/*" :custom-request="uploadMuFile">
<template #upload-button>
<div class="flex-center px-3 py-1 rounded cursor-pointer bg-fill-bg1">
<global-icon icon="image" :size="15"></global-icon>
</div>
</template>
</a-upload>
<a-upload :show-file-list="false" accept=".pdf" :custom-request="uploadMuFile" @change="handleChange">
<a-upload :show-file-list="false" accept=".pdf" :custom-request="uploadMuFile">
<template #upload-button>
<div class="flex-center px-3 py-1 rounded cursor-pointer bg-fill-bg1">
<global-icon icon="pdf" :size="15"></global-icon>
</div>
</template>
</a-upload>
<a-upload :show-file-list="false" accept="video/*" :custom-request="uploadMuFile" @change="handleChange">
<a-upload :show-file-list="false" accept="video/*" :custom-request="uploadMuFile">
<template #upload-button>
<div class="flex-center px-3 py-1 rounded cursor-pointer bg-fill-bg1">
<global-icon icon="video" :size="15"></global-icon>
......@@ -76,8 +76,8 @@ import { alova } from '@/api/alova-instance'
import { Message } from '@arco-design/web-vue'
const uploadMuFile = (option: any) => {
const { onProgress, onError, onSuccess, fileItem, name } = option
var params = {
const { onError, onSuccess, fileItem } = option
const params = {
apiPwd: 'Ifar$2_0160_525_Mocp',
file: fileItem.file,
requestFrom: 6,
......@@ -97,11 +97,7 @@ const uploadMuFile = (option: any) => {
.catch((error) => {
onError(error)
}) as any
}
const handleChange = (fileList: any, file: any) => {
console.log('FileList:', fileList)
console.log('Current file:', file)
}
};
</script>
<style lang="less" scoped>
.chat-list {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment