fix: 上传文件

fix-0609-xwk
向文可 2 years ago
parent a3e88f56b6
commit d4ab58b8e8

@ -4,12 +4,12 @@
v-bind="props"
action="none"
:before-upload="handleBeforeUpload"
:class="{ max: imgList.length === props.limit, 'sortable--submit': sortable }"
:class="{ max: imgList.length === props.limit }"
:file-list="imgList"
:http-request="handleUpload"
list-type="text"
:on-exceed="handleExceed"
:show-file-list="!sortable"
show-file-list
>
<el-button type="primary">
<el-icon name="Plus" style="top: 0" />

@ -24,8 +24,8 @@ export default (configEnv) => {
// target: 'http://192.168.10.5:4500', // 高玉
// target: 'http://192.168.10.67:8090', // 罗战
// target: 'http://192.168.10.93:8090', // 周渺
target: 'http://192.168.10.124:8090', // 舒梦娇
// target: 'https://k8s-horse-gateway.mashibing.cn/', // 测试地址
// target: 'http://192.168.10.124:8090', // 舒梦娇
target: 'https://k8s-horse-gateway.mashibing.cn/', // 测试地址
// target: 'https://you-gateway.mashibing.com', // 生产环境
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),

Loading…
Cancel
Save