mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
fix:项目/路径图/模板库-共享文档下载问题
This commit is contained in:
@@ -2821,7 +2821,6 @@ export default {
|
||||
|
||||
// 共享文档文件下载
|
||||
const downloadFile = (url) => {
|
||||
url && window.open(url);
|
||||
console.log(url);
|
||||
window.open(
|
||||
window.location.protocol +
|
||||
|
||||
@@ -1389,9 +1389,12 @@ export default defineComponent({
|
||||
// 共享文档文件下载
|
||||
const downloadFile = (url) => {
|
||||
console.log(url)
|
||||
if (url) {
|
||||
window.open(url)
|
||||
}
|
||||
window.open(
|
||||
window.location.protocol +
|
||||
process.env.VUE_APP_BOE_API_URL +
|
||||
process.env.VUE_APP_FILE_PATH +
|
||||
url
|
||||
);
|
||||
// if(url){
|
||||
// const filename = '操作指南'
|
||||
// const x = new XMLHttpRequest()
|
||||
|
||||
@@ -4724,7 +4724,6 @@ export default {
|
||||
}
|
||||
// 共享文档文件下载
|
||||
const downloadFile = (url) => {
|
||||
url && window.open(url);
|
||||
console.log(url);
|
||||
window.open(
|
||||
window.location.protocol +
|
||||
|
||||
Reference in New Issue
Block a user