Skip to content

Commit 1c5a750

Browse files
committed
Update ImgColumn
1 parent 6f21336 commit 1c5a750

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/components/public/table/ImgColumn.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<section>
33
<div class="demo-upload-list" v-for="(item,index) in uploadList">
44
<template v-if="item.status === 'finished'">
5-
<img :src="item.src">
6-
<!--<img v-if="HOST=='/static'" :src="item.src">-->
7-
<!--<img v-else :src="HOST+'/'+item.src">-->
5+
<!--<img :src="item.src">-->
6+
<img v-if="HOST=='/static'" :src="item.src">
7+
<img v-else :src="HOST+'/'+item.src">
88
<div class="demo-upload-list-cover">
99
<Icon type="ios-eye-outline" size="20" style="margin-top: 5px;margin-right: 3px;" @click.native="handleView(item,index)"></Icon>
1010
</div>
@@ -32,9 +32,9 @@
3232
</div>
3333
</Upload>
3434
<Modal title="查看图片" v-model="visible" ok-text="删除" @on-ok="handleRemove(uploadItem)">
35-
<img :src="uploadItem.src" width="100%">
36-
<!--<img v-if="HOST=='/static'" :src="uploadItem.src" width="100%">-->
37-
<!--<img v-else :src="HOST+'/'+uploadItem.src" width="100%">-->
35+
<!--<img :src="uploadItem.src" width="100%">-->
36+
<img v-if="HOST=='/static'" :src="uploadItem.src" width="100%">
37+
<img v-else :src="HOST+'/'+uploadItem.src" width="100%">
3838
</Modal>
3939

4040
</section>

src/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Vue.prototype.$logHelper = log
3232
Vue.prototype.$utilHelper = util
3333
//引入全局webSocket
3434
Vue.use(VueSocketio, 'http://localhost:3983');
35+
3536
//使用静态文件
3637
//Vue.prototype.HOST = 'static'
3738
//使用代理连接后台

0 commit comments

Comments
 (0)