Commit c57ab032 authored by 黄媛媛's avatar 黄媛媛

修改我的分享

parent cdba03d2
...@@ -283,7 +283,7 @@ ...@@ -283,7 +283,7 @@
</div> </div>
</el-dialog > </el-dialog >
<a target="_blank" style="display:none" id="blankLink"></a>
</div> </div>
</template> </template>
...@@ -640,7 +640,11 @@ ...@@ -640,7 +640,11 @@
this.fileList.push(obj.FileId) this.fileList.push(obj.FileId)
} }
if(obj.shareFileType==2){ if(obj.shareFileType==2){
let reg = /^http(s)?:\/\/(.*?)\// let reg = /^http(s)?:\/\/(.*?)\//
let dom = document.querySelector("#blankLink")
dom.href = obj.FileUrl
dom.click()
return
this.downloadFileRename(obj.FileUrl.replace(reg,''),obj.fileName); this.downloadFileRename(obj.FileUrl.replace(reg,''),obj.fileName);
} }
}, },
......
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