上传配置地址修改
This commit is contained in:
parent
c852f77bee
commit
ff134c7b0a
|
@ -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 16:58:19
|
||||
* @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({
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue