上传配置文件修改

This commit is contained in:
wuhongjian 2022-06-16 17:04:20 +08:00
parent c852f77bee
commit 36b8fec5a0
3 changed files with 10 additions and 10 deletions

View File

@ -1,14 +1,14 @@
<!--
* @Author: hisense.liangjunhua
* @Date: 2022-06-09 15:41:19
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-06-10 15:44:37
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-06-16 17:03:48
* @Description: 上传组件
-->
<template>
<a-upload
v-model:file-list="fileList"
:action="`${baseURL}/upload`"
:action="`${window.SITE_CONFIG.apiURL}/upload`"
list-type="picture"
class="upload-list-inline"
:maxCount="props.maxCount"
@ -35,7 +35,7 @@
</template>
<script setup>
import { ref, defineProps } from 'vue'
import { baseURL } from '@/config'
// import { baseURL } from '@/config'
import { message, Upload } from 'ant-design-vue'
import mybus from '@/myplugins/mybus'
const props = defineProps({

View File

@ -146,7 +146,7 @@
<a-upload
v-model:file-list="fileList"
name="file"
:action="`${baseURL}/upload`"
:action="`${window.SITE_CONFIG.apiURL}/upload`"
:headers="headers"
@change="handleChange"
:before-upload="beforeUpload"
@ -251,7 +251,7 @@
} from '@/api/home'
import mybus from '@/myplugins/mybus'
import { sgcDel, getApplyForm } from '@/api/personalCenter'
import { baseURL } from '@/config'
// import { baseURL } from '@/config'
// import AsideMenu from './components/asideMenu.vue'
export default {
@ -561,7 +561,7 @@
handleChange,
applySuccess,
disabled,
baseURL,
// baseURL,
beforeUpload,
}
},

View File

@ -135,7 +135,7 @@
<a-upload
v-model:file-list="fileList"
name="file"
:action="`${baseURL}/upload`"
:action="`${window.SITE_CONFIG.apiURL}/upload`"
:headers="headers"
@change="handleChange"
>
@ -230,7 +230,7 @@
getDemandForm,
updateDemandForm,
} from '@/api/personalCenter'
import { baseURL } from '@/config'
// import { baseURL } from '@/config'
import { useRouter } from 'vue-router'
export default {
@ -346,7 +346,7 @@
disabled,
signOut,
processStartHandle,
baseURL,
// baseURL,
}
},
}