上传配置文件修改

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

View File

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

View File

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