共享文件下载

This commit is contained in:
lpq
2023-03-02 21:13:43 +08:00
parent af93a4b9c9
commit 4caedbff7c
3 changed files with 7 additions and 4 deletions

View File

@@ -2786,9 +2786,11 @@ export default {
// 共享文档文件下载
const downloadFile = (url) => {
console.log(url);
if (url) {
window.open(url);
debugger
const urlNew = url.slice(1);
console.log(urlNew);
if (urlNew) {
window.open(process.env.VUE_APP_FILE_PATH + urlNew);
}
// if(url){
// const filename = '操作指南'