<a-upload
v-model:file-list="fileList"
name="file"
action="http://127.0.0.1:8101/api/file/upload?biz=user_avatar"
:with-credentials='true'
@change="handleChange"
>
<a-button>
<upload-outlined></upload-outlined>
Click to Upload
</a-button>
</a-upload>
添加 :with-credentials='true' 即可