🐛:访问白屏问题

This commit is contained in:
jmal 2022-02-09 16:07:46 +08:00
parent 0e8e9cf88d
commit 6f7ec6ac87
2 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@
<!--vue.js 开发环境版本,包含了有帮助的命令行警告-->
<!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>-->
<!-- 生产环境版本,优化了尺寸和速度 -->
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14"></script>
<!--vue-roter.js-->
<script src="https://cdn.bootcss.com/vue-router/3.0.6/vue-router.js"></script>
<!--axios.js-->

View File

@ -27,6 +27,7 @@ export default {
// 下载文件
download: function(username, file, token) {
fileApi.isAllowDownload().then(() => {
encodeURI()
let url = `${this.baseUrl}/file/${username}${file.path}${encodeURIComponent(file.name)}?jmal-token=${token}&o=download`
window.open(url, '_self')
})