Commit 07841df5 authored by wangqinghua's avatar wangqinghua

bug

parent 6b05e61e
......@@ -65,7 +65,7 @@
this.$store.commit(types.SIDEWIDTH,0) //隐藏侧边栏
let fileName = this.$route.query.fileName
console.log(fileName)
let url = '/common/file/download?fileName='+fileName
let url = '/api/common/file/download?fileName='+fileName
this.loadFile(url)
}
}
......
......@@ -44,7 +44,7 @@
</el-col>
<el-col :span="20" class="padding-10-0">
<p v-for="file of item.accessories" class="padding-10-0">
<a @click="selectFile(file.name)">{{file.name}}</a>
<a @click="selectFile(file.saveName)">{{file.name}}</a>
</p>
</el-col>
</el-row>
......@@ -76,9 +76,9 @@
}
},
methods: {
selectFile(fileName){
let url = '/api/common/file/download?fileName='+fileName
if(!fileName.includes('pdf')){
selectFile(saveName){
let url = '/api/common/file/download?fileName='+saveName
if(!saveName.includes('pdf')){
let elemIF = document.createElement("iframe");
elemIF.src = url;
elemIF.style.display = "none";
......@@ -87,7 +87,7 @@
let newpage = this.$router.resolve({
name: 'preview',
query:{
fileName:fileName
fileName:saveName
}
})
window.open(newpage.href, '_blank');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment