更换接口

This commit is contained in:
李志鹏
2026-04-28 17:24:59 +08:00
parent 27da8f6680
commit 55481c6d51
19 changed files with 299 additions and 306 deletions

View File

@@ -54,7 +54,7 @@
</div>
<div class="upload_file_item upload_component" v-show="printboardList.length < 16">
<a-upload
:action="uploadUrl + '/api/element/upload'"
:action="uploadUrl + '/aida/api/element/upload'"
:capture="null"
list-type="picture-card"
:before-upload="beforeUpload"
@@ -415,7 +415,7 @@ export default defineComponent({
file:data.originFileObj
}
let fileUid = data.uid
Https.axiosPost('/api/element/upload', new_data,{headers:{'Content-Type': 'multipart/form-data'}}).then(
Https.axiosPost('/aida/api/element/upload', new_data,{headers:{'Content-Type': 'multipart/form-data'}}).then(
(rv: any) => {
if (rv) {
for(let file of this.fileList){
@@ -491,7 +491,7 @@ export default defineComponent({
}
this.isUpload = true
const hide = message.loading('loading', 0);
Https.axiosPost('/api/element/upload', new_data,{headers:{'Content-Type': 'multipart/form-data'}}).then(
Https.axiosPost('/aida/api/element/upload', new_data,{headers:{'Content-Type': 'multipart/form-data'}}).then(
(rv: any) => {
for(let file of this.fileList){
if(fileData.uid === file.uid){