修改 ImageUpload 组件的回显 url 地址

This commit is contained in:
quantulr
2022-09-05 10:41:30 +08:00
parent 309752b8bb
commit ae74847c93
3 changed files with 2 additions and 6 deletions

View File

@ -114,7 +114,7 @@ function handleRemove(file, files) {
// 上传成功回调
function handleUploadSuccess(res) {
uploadList.value.push({ name: res.fileName, url: res.fileName });
uploadList.value.push({ name: res.fileName, url: res.url });
if (uploadList.value.length === number.value) {
fileList.value = fileList.value.filter(f => f.url !== undefined).concat(uploadList.value);
uploadList.value = [];

View File

@ -62,10 +62,6 @@
@queryTable="getList"
></right-toolbar>
</el-row>
<!-- <RightToolBar
v-model:showSearch="showSearch"
@queryTable="getList"
></RightToolBar> -->
<el-table v-loading="loading" :data="dataList">
<el-table-column label="数据编号" prop="id" align="center" />
<el-table-column

View File

@ -31,7 +31,7 @@ export default defineConfig(({ mode, command }) => {
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
'/dev-api': {
target: 'http://120.26.107.74:1618',
target: 'http://192.168.31.162:1618',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
}