File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ Vue.prototype.$logHelper = log
3232Vue . prototype . $utilHelper = util
3333//引入全局webSocket
3434Vue . use ( VueSocketio , 'http://localhost:3983' ) ;
35+
3536//使用静态文件
3637//Vue.prototype.HOST = 'static'
3738//使用代理连接后台
You can’t perform that action at this time.
0 commit comments