mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-25 02:32:56 +08:00
feat:修改下载url
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2023-01-13 11:42:48
|
||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||
* @LastEditTime: 2023-03-03 15:06:24
|
||||
* @LastEditTime: 2023-03-03 20:16:42
|
||||
* @FilePath: /stu_h5/src/views/filestorag/fileStorag.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
@@ -108,23 +108,19 @@ const fileList = computed(() =>
|
||||
);
|
||||
//下载
|
||||
function downloadFile(url) {
|
||||
// window.open(import.meta.env.VITE_FILE_PATH + url);
|
||||
let urlNew = url.slice(1);
|
||||
console.log(
|
||||
"url2",
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_API_URL +
|
||||
import.meta.env.VITE_FILE_PATH +
|
||||
urlNew
|
||||
url
|
||||
);
|
||||
window.open(
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_API_URL +
|
||||
import.meta.env.VITE_FILE_PATH +
|
||||
url
|
||||
);
|
||||
if (urlNew) {
|
||||
window.open(
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_API_URL +
|
||||
import.meta.env.VITE_FILE_PATH +
|
||||
urlNew
|
||||
);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user