更换文件上传配置

This commit is contained in:
wuhongjian 2022-06-16 16:56:27 +08:00
parent c852f77bee
commit 29689b2319
5 changed files with 20 additions and 20 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian
* @Date: 2022-04-11 10:11:40
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-06-13 11:21:09
* @LastEditTime: 2022-06-16 15:52:33
* @Description: 告诉大家这是什么
-->
<!DOCTYPE html>
@ -28,8 +28,8 @@
'iframeURL': '' // 是否通过iframe嵌套展示内容? (以http[s]://开头, 自动匹配)
};
// window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.238:9796/#/vueTemplateDemo';
// window.SITE_CONFIG['frontUrl'] = 'http://124.222.94.39:9796/#/vueTemplateDemo';
window.SITE_CONFIG['frontUrl'] = 'http://15.72.183.90:7008/#/vueTemplateDemo';
window.SITE_CONFIG['frontUrl'] = 'http://124.222.94.39:9796/#/vueTemplateDemo';
// window.SITE_CONFIG['frontUrl'] = 'http://15.72.183.90:7008/#/vueTemplateDemo';
window.SITE_CONFIG['menuList'] = []; // 左侧菜单列表(后台返回,未做处理)
window.SITE_CONFIG['permissions'] = []; // 页面按钮操作权限(后台返回,未做处理)
window.SITE_CONFIG['dynamicRoutes'] = []; // 动态路由列表
@ -67,10 +67,10 @@
<% if (process.env.VUE_APP_NODE_ENV === 'prod') { %>
<script>
// window.SITE_CONFIG['apiURL'] = 'http://124.222.94.39:8888/renren-admin';
window.SITE_CONFIG['apiURL'] = 'http://124.222.94.39:8888/renren-admin';
// window.SITE_CONFIG['apiURL'] = 'http://15.2.21.238:8888/renren-admin';
window.SITE_CONFIG['apiURL'] = 'http://15.72.183.90:8000/renren-admin';
// window.SITE_CONFIG['apiURL'] = 'http://15.72.183.90:8000/renren-admin';
// WebSocket地址
window.SITE_CONFIG['socketURL'] ='ws://localhost:8080/renren-admin/websocket';
</script>

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 16:54:05
* @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

@ -64,7 +64,7 @@
<a-upload
v-if="itemchild.name == '上传图片'"
v-model:file-list="fileList"
:action="`${baseURL}/upload`"
:action="`${window.SITE_CONFIG.apiURL}/upload`"
list-type="picture-card"
@preview="handlePreview"
@change="handleChange"
@ -88,7 +88,7 @@
itemchild.name == '子系统一图片'
"
v-model:file-list="fileListone"
:action="`${baseURL}/upload`"
:action="`${window.SITE_CONFIG.apiURL}/upload`"
list-type="picture-card"
@preview="handlePreviewone"
@change="handleChangeone"
@ -112,7 +112,7 @@
itemchild.name == '子系统二图片'
"
v-model:file-list="fileListtwo"
:action="`${baseURL}/upload`"
:action="`${window.SITE_CONFIG.apiURL}/upload`"
list-type="picture-card"
@preview="handlePreviewtwo"
@change="handleChangetwo"
@ -136,7 +136,7 @@
itemchild.name == '子系统三图片'
"
v-model:file-list="fileListthree"
:action="`${baseURL}/upload`"
:action="`${window.SITE_CONFIG.apiURL}/upload`"
list-type="picture-card"
@preview="handlePreviewthree"
@change="handleChangethree"
@ -416,7 +416,7 @@
updateRes,
relaunch,
} from '@/api/home'
import { baseURL } from '@/config'
// import { baseURL } from '@/config'
import { message } from 'ant-design-vue'
const router = useRouter()
const showKey = ref(0)

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,
}
},
}