Add files via upload

This commit is contained in:
niubility000 2021-10-25 11:19:26 +08:00 committed by GitHub
parent cd0a32afc5
commit 5d86774e19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -320,12 +320,14 @@ export default {
return;
}
},
prefetchUrl: function(item,link) {
prefetchUrl: function(item, routePath) {
const key = Date.parse(item.modified);
if (item.type === "image" && !this.fullSize) {
return `${baseURL}/api/preview/big${link.slice(6)}?k=${key}`;
return `${baseURL}/api/preview/big${routePath.slice(6)}?k=${key}`;
} else if (item.type === "image"){
return `${baseURL}/api/raw${routePath.slice(6)}?k=${key}`;
} else{
return `${baseURL}/api/raw${link.slice(6)}?k=${key}`;
return "";
}
},
openMore() {