Add files via upload

This commit is contained in:
niubility000 2021-10-19 08:18:08 +08:00 committed by GitHub
parent 5d9b2ee0de
commit 67219575c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -313,9 +313,9 @@ export default {
} else if (this.listing[j].type === "image" ) { } else if (this.listing[j].type === "image" ) {
this.routeDataP = `${baseURL}/api/raw${this.previousLink.slice(6)}?k=${key}`; this.routeDataP = `${baseURL}/api/raw${this.previousLink.slice(6)}?k=${key}`;
} else { } else {
this.routeDataP = ""; this.routeDataP = "";
} }
this.rawP=`${this.routeDataP}&inline=true`; this.rawP=`${this.routeDataP}&inline=true`;
break; break;
} }
} }
@ -323,14 +323,14 @@ export default {
for (let j = i + 1; j < this.listing.length; j++) { for (let j = i + 1; j < this.listing.length; j++) {
if (mediaTypes.includes(this.listing[j].type)) { if (mediaTypes.includes(this.listing[j].type)) {
this.nextLink = this.listing[j].url; this.nextLink = this.listing[j].url;
const key = Date.parse(this.listing[j].modified); const key = Date.parse(this.listing[j].modified);
if (this.listing[j].type === "image" && !this.fullSize) { if (this.listing[j].type === "image" && !this.fullSize) {
this.routeDataN = `${baseURL}/api/preview/big${this.nextLink.slice(6)}?k=${key}`; this.routeDataN = `${baseURL}/api/preview/big${this.nextLink.slice(6)}?k=${key}`;
} else if (this.listing[j].type === "image" ) { } else if (this.listing[j].type === "image" ) {
this.routeDataN = `${baseURL}/api/raw${this.nextLink.slice(6)}?k=${key}`; this.routeDataN = `${baseURL}/api/raw${this.nextLink.slice(6)}?k=${key}`;
} else { } else {
this.routeDataN = ""; this.routeDataN = "";
} }
this.rawN=`${this.routeDataN}&inline=true`; this.rawN=`${this.routeDataN}&inline=true`;
break; break;
} }